A Flow Simulation and Transient Well Analysis Method Based on Generalized Tube Flow and Percolation Coupling

ABSTRACT

This invention discloses a multi-phase flow simulation analysis method based on generalized mobility, which comprises the following steps: S1: The generalized mobility describes fluid flow laws in different subset of study area by using the generalized mobility models with the same form; S2: On the basis of generalized mobility, the multi-component multi-phase flow simulation equations are established. Through solving the above mentioned multi-component multi-phase flow simulation equations, the pressure, temperature, saturation, and mole percentage of each component and each phase of multicomponent multiphase flow fluids in study area are obtained; S3: The corresponding application software are formed by using the established multi-component multi-phase flow simulation and analysis equations. The invention plays an important role in solving the single and multi-well flow simulation of complex multicomponent multiphase flow reservoirs, multi-well interference analysis, deliverability analysis, transient pressure analysis, transient rate analysis, transient temperature analysis, well test design, and permanent downhole monitoring data analysis.

TECHNICAL FIELD OF THE INVENTION

This invention involves various fluid flow simulation and fluid injection and production engineering fields and the like of oil, gas, water, carbon dioxide, chemical agents, microbial agents, water vapors, blood, etc, which is specific to a flow simulation and transient well analysis methods based on generalized tube flow and percolation coupling.

BACKGROUND OF THE INVENTION

The flow of underground fluids in continuous porous media is called percolation flow, while the free flow of fluids in wellbore, pipes, large fractures, large holes, cavities, caves, fracture caves, karst caves, caverns, channels and so on is called tube flow. In the process of fluid flowing from porous medium area into or out of tube area, the fluid flow laws change from percolation flow to tube flow or from tube flow to percolation flow. The problem of this kind of percolation and tube flow existing at the same time is called tube flow-percolation coupling. It is obvious that the tube flow-percolation coupling is common in the industry of oil and gas exploration and production, groundwater exploitation, underground gas storage, geothermal exploitation.

The Darcy's Law is widely used in the percolation theory. Darcy's law was created by French engineer Henry Darcy in 1856 through his experiments. It becomes the basic law of percolation mechanics because of its advantages of simple proportional linear function, clear physical concept, and easy solving solutions. It is widely used in underground hydraulics and underground oil and gas percolation mechanics. At present, most of the theoretical models of continuous media in oil and gas reservoirs are based on Darcy's law. In addition to Darcy's percolation law, the Hagen-Poisenille laminar-pipe flow formula (1838) is also a linear flow law. However, with the deep practical study, it is found that Darcy percolation law is limited in a certain range of application. The percolation law will become nonlinear beyond the range. The motion equations (or formulas) that are commonly used for describing the nonlinear flow include Irmay (1968)'s low-speed non-Darcy formula, Swartzendruber (1962)'s low-speed non-Darcy formula. Yanzhang Huang (1997)'s low-speed non-Darcy formula; Forchheimer (1901)'s high-speed non-Darcy formula. Barree-Conway (2004)'s high-speed non-Darcy formula; Dexuan Dai (,2019)'s power law non-Newton formula, Yifeng Teng (2016)'s Bingham fluid formula; Jiali Ge (1982)'s stress sensitive index formula; Darcy-Weisbach (1845)'s formula; Navier-Stokes equation for free flow in cavities (Navier, 1827; Stokes, 1845), Stokes-Brinkman equation (Brinkman, 1949), Brinkman-Farchheimer equation (Demin Liu, 2017).

On the basis of the actual situations, the above 2 linear and 12 commonly used nonlinear flow laws can be used independently (that is, the whole reservoir follows a single flow law) or they can also be used in combination (different flow laws are applied in different regions or at different scales in the whole reservoirs). The independent application situation is relatively simple, such as using the Darcy percolation model to characterize the entire homogeneous sandstone reservoirs. The homogeneous heavy oil reservoirs can be characterized by power law model. The homogeneous low permeability reservoirs can be characterized by low-speed non-Darcy models. The combined use of above flow laws is relatively complex. For example, three composite distribution areas of polymer, water and oil are formed around an injection well in the reservoir of water drive before polymer drive. The flow laws of the polymer region are characterized by the non-Newtonian fluid models, while the flow laws of the water and oil regions are characterized by the Darcy percolation model, which is a percolation-percolation composite flow between different regions. In the process of oil and gas well production, it is a typical tube flow-percolation coupling flow between formation and wellbore. The spatial structures of naturally fracture-cavern reservoirs with nonhomogeneous vugs and fractures are complex, the medium space scale span is large and the heterogeneity is serious. The fluid flow laws in this kind of oil and gas reservoir are very complicated. It includes both multi-porosity medium percolation and free flow of large holes. The flow of fluids in fracture-caves reservoirs is a complex tube flow (free flow)-percolation coupling.

Compared with the percolation-percolation composite flow, the problems of tube flow (free flow)-percolation coupling are much more complicated. Up to now, five kinds of approaches have been proposed for the theoretical study of “tube flow (free flow)-percolation coupling models”.

The first category is dual, triple and multi-porosity models based on Darcy's law, which are mainly used for the reservoirs with relatively uniform distribution and relatively small scales of porous media. In the past 50 years, the industry has continuously published such achievements, and has published the large number of such papers. Representative technical achievements: (1) dual porosity media model with pseudo-steady cross flow created by Warren and Root (1963), which was considered that the fractured reservoir is composed of two groups of parallel continuous systems of fracture and matrix. There are two kinds of pressures of fracture fluid and matrix fluid at every point in the space. In the two flow fields, they meet Darcy's law and ignore the influence of gravity. The two systems are connected by transfering flow function. (2) A model of unsteady inter porosity flow in dual porous media is established by Jia Yinglan (2013), which divided carbonate reservoir into matrix system and vug system. The vug in the vug system is assumed to be spherical and evenly distributed in the matrix system. The matrix system was connected by the wellbore, and the fluid in the matrix can flow directly into the wellbore. The fluid in the spherical karst vug can flow into the wellbore only with the aid of the matrix. (3) Triple porosity model created by Ciqun Liu (1981), Wu Yushu and Jiali Ge (1983) and Yushu Wu et al (2007) through dividing the types of media into three types: fracture, vug and matrix. (4) Multi-medium model with high speed non Darcy seepage created by Wenguang Feng and Jiali Ge (1985). (5) The dual permeability model of triple porous media constructed by Chang Xuejun (2004), Camacho-V et al. (2005). Gomez (2014) et al., which not only considers the cross flow between the two media, but also considers that both the vugs and natural fractures are connected with the wellbore, and the fluids in the vugs and natural fractures can flow directly into the wellbore, Compared with the triple porosity medium single permeability model constructed by other people above, only the natural fractures are connected with the wellbore, and the fluid in the natural fractures can flow directly into the wellbore, while the fluid in the matrices and the vugs can flow into the wellbore only with the help of the natural fractures, and there is cross flow between the matrices and the vugs, the matrices and the natural fractures, as well as between the vugs and the natural fractures.

The second category is continuous-discrete medium composite models established by combining both the permeable flow regions that possess the permeable characteristics and the tube flow regions that possess free flow as the composite regions (blocks) that conforms to the Darcy percolation flow. Its core idea is to treat the tube flow (free flow) region as a permeable area with high permeability and large porosity. Representative technical achievements: (1) Fuxiang Zhang et al. (2009) and yizhao Wan et al. (2015) used irregular regions with high permeability, high porosity (blocks) to describe fractures or caverns with different shapes and large scales, in which the fluid flow in fractures or caverns still belongs to the domain of percolation. (2) Fangfang Chen et al. (2015) established a new numerical well test analysis model with wells drilled outside the holes, in which the flow of caverns and other regions of the reservoirs is all percolation with satisfying Darcy's law, (3) Kuchuk and Biryukov (2012), Zeng and Zhao (2012) studied regular (or irregular) fracture models with discrete (or continuous) media in heterogeneous reservoirs, in which the matrix blocks are considered as Darcy percolation, whereas fractures are constructed as boundary conditions using the idea of “source function”. Models of the second category is relatively simple, which can better reflect the geological dynamic features of fractures or caves in reservoirs, and have good consistency with the actual production condition.

The third category is the discrete fracture-cave models with combinations of different fractures and caves established through combing the isopotential body models of tube flow (free flow) based on material balance and the percolation channel models of connecting isopotential body based on Darcy percolationt. Representative technical results: (1) For large-scale fractured vuggy reservoirs, Xiaolong Peng et al. (2008), Lijun Zhang et al. (2010), Baohua Chang et al. (2011), and Baojiang Duan et al. (2012) established a fractured vuggy models of psedo-steady flow between karst vuggy and karst vuggy through fractures, in which it is considered that the pressure change propagates rapidly, and the shape of fracture vuggy has no effect on the pressure change. (2) Yu Xiong et al. (2018) considered the fluid flow in the fractures as unsteady flow on the basis of the previous work, and constructed the corresponding fracture cavern model of the well drilled in large scale fractures. (3) Yonghui Wu et al. (2018) also divided the fracture cavern reservoirs into rock block systems (including matrix, micro fractures, and micro caves), fractures, karst cave systems. Fractures and caverns are embedded in the rock block system and are interconnected. The fluid flows in the rock block system is characterized by a triple porosity model. The fluid flows in the fracture system is Darcy percolation, which is characterized by Darcy percolation model. The fluid flow in the caverns is pseudo-steady flow, which is characterized by the isopotential body model. The models of the third category are easy to be constructed and solved, and the calculation speed of the model is fast, and the volume of the fractures and caverns can be calculated. (4) Wei Pang et al. (2019) based on the energy conservation equation (Bernoulli equation) of fluid flow in the wellbore and karst cave, gave the relationship between the bottom hole pressure and karst cave pressure, and on this basis, constructed the well test interpretation model with a well drilled in a large karst cave. However, in the process of simplifying the energy conservation equation. Wei Pang et al. (2019) ignored the flow velocity of the fluid in the cave, so the cave is essentially an isopotential body. This kind of isopotential model is easy to construct and solve. At the same time, the calculation speed of the model is not only fast, but also can calculate the parameters such as the volume of the fractured caves.

The fourth category is the Darcy-Navier-Stokes coupling model of tube flow (free flow)-percolation established based on Darcy percolation and free flow. Representative technical achievements: (1) Aiming at carbonate fracture and cavern reservoirs, Layton et al. (2003). Mu et al. (2007), Xueli Liu et al. (2007), Xiaolong Peng et al. (2007), Jun Yao et al. (2010), Yajun Li et al. (2011), Na Zhang et al. (2015), Akanni et al. (2017) treat the fluid flow in large-scale fractures and caverns as free flow. Based on the Beavers-Joseph boundary conditions, the fluid flow in fractures and matrix is described by using the Navier-Stokes equation as flow law. (2) Chaoqin Huang et al. (2010) established a macroscopic flow mathematical model of discrete fracture and cave network based on the Brinkam equation, which is the empirical equation proposed by Brinkman considering the terms of fluid viscous shear stress of Navier-Stokes equations on the basis of the Darcy formula in 1974. (3) Popov et al. (2009) proposed to use Stokes Brinkman equation to describe the flow in the fracture cavern media based on the fact, i.e. the caverns are often filled with different degrees. (4) Based on the idea and method of discrete fracture model (Baca, 1984), Dongyan et al. (2013) constructed the multi-stage fracturing horizontal well coupling flow model, the main idea of which is to use Darcy's law to describe the flow law of the fluid in the reservoir and fractures, and Hagen Poiscuille's law to describe the flow law of the fluid in the horizontal well bores. The model of the fourth category is currently the most accurate model describing the tube flow (free flow)-percolation coupling and is able to be used for simulation calculations of various complex fluid flow laws.

The fifth category is based on the Darcy-Weisbach (1845) formula. The corresponding equivalent permeability or equivalent percolation coefficient or converted percolation coefficient are defined by changing the formula into the form of “Darcy's law” to achieve the unification of percolation, laminar tube flow and turbulent tube flow, and then realize the flow simulation of tube flow-percolation coupling. Collins et al. (1991) and Shuhong Vu et al. (1999) built up the equivalent permeability model for laminar flow, turbulent flow and transition flow in horizontal wellbore, which simplified and reduced the coupling complexity between formation percolation and horizontal wellbore tube flow. In the field of groundwater exploitation, in order to overcome the difficult problem of coupling flow between different tube flows and formation water percolation in a wellbore-formation system, Chongxi Chen (1994) proposed the concept of converted (laminar) percolation coefficient for turbulent flow in wellbore (with 4 flow zones) for the first time. At the same time, the expressions of converted (laminar) percolation coefficients of four turbulent flow zones are given, which transformed the tube flow law into a linear law and solved the difficult problem in tube flow-percolation coupling. Based on the concept of converted (laminar flow) percolation coefficient, Chongxi Chen (1995) developed the groundwater flow model of karst pipe-fracture-pore triple porous media. Yanlin Zhao (2014) also established the nonlinear percolation-tube flow coupling model for water inrush in pressure-bearing karst caves based on the converted percolation coefficient. The results of Chongxi Chen (1994, 1995) and Yanlin Zhao et al. (2014) so far are the unique tube flow-percolation coupling model applied to the reservoirs on the basis of equivalent percolation coefficient. It should be noticed that the above concept of “equivalent permeability” is relative to the pressure gradient and mainly used in the field of oil and gas extraction engineering. The concepts of “equivalent percolation coefficient” and “converted percolation coefficient” have the exact same physical meaning, except that the names are different. These two concepts are relative to the hydraulic gradient and mainly used in the field of hydraulic geological engineering. The model of the fifth category can use a unified flow law to represent the flow states in different zones of percolation, laminar flow and turbulence flow, which makes the construction and solution of the model equations relatively simple.

The first category of models is simple to construct and solve, but the main problem is that the model is not suitable when there are large-scale cavities in the reservoir and the distribution of different media in the reservoir is not uniform. The modeling process of the second category of models is complex and costly, which is not conducive to the widespread application. The third category of models cannot be used to determine the geometric size of the karst caves, which is the poor adaptability to the long-strip or strip-type flow system, so that the flow capacity of the large-scale karst caverns cannot be obtained. The fourth category of models is mainly used in numerical forward modeling because of its complex process and large amount of computation. At present, most of the research of models of this category assume that the fluid is incompressible steady flow, but the fluid in the real oil, gas and water reservoir is compressible or slightly compressible unstable flow. In addition, it is very difficult to construct the model because the serious heterogeneities of the oil and gas fractured cave reservoirs exist, both percolation and tube flow exist, and the tube flow-percolation coupling boundary cannot be obtained accurately. The fifth category of models has long been mainly used to realize the simple coupling cases related to wellbore and formation based on equivalent permeability or equivalent percolation coefficient or converted percolation coefficient, and tube flow (free flow)-percolation coupling flow simulation within the reservoir is solely limited in the field of underground hydraulics with published finite application, No achievements have been published in the fields of numerical simulation of oil and gas reservoirs, transient pressure well test analysis, deliverability test analysis, multi-well interference test analysis, rate production data analysis, transient temperature well test analysis, and permanent downhole monitoring data analysis. In addition, the fifth category method is only limited to the Newtonian fluid percolation, laminar flow, and turbulent flow, but not used to consider the non-Newtonian characteristics of the fluid, non-isothermal flow, diffusion and adsorption desorption effects and so on.

At present, there is no uniform motion equation expression of describing flow law of underground oil, gas, and water. In the coupling problem of various complex reservoirs and various types of wellbores, it is necessary to construct different governing equations and coupling conditions based on various types of reservoir and wellbore conditions, which complicates the construction and solution of the models.

SUMMARY OF THE INVENTION

The main goal of this invention is to provide a flow simulation and transient well analysis method based on generalized tube flow and percolation coupling, which can be used to overcome various types of complicated tube flow and percolation coupling problems in underground reservoirs.

The technical scheme of the invention is as follows:

This invention provides a flow simulation and transient well analysis method based on generalized tube flow and percolation coupling, which is comprised of the following steps:

S1: Based on defining the generalized mobility, fluid flow laws in different subset of study area are characterized by using the generalized mobility models with the same form;

S2: On the basis of generalized mobility, the multi-component multi-phase flow governing equations are established by considering convection term, diffusion term, accumulation term, adsorption term, and source/sink term. Then a whole set of multi-component multi-phase flow simulation equations are created through combining energy conservation equation, auxiliary equations with saturation and capillary pressure, initial saturation equation, initial pressure equation, initial temperature equation, phase equilibrium equation, and boundary condition equations: The pressure, temperature and saturation of multi-phase fluid as well as the mole percentage of each component in each phase at any point in the study areas are obtained by solving the above mentioned multi-component multi-phase flow simulation equation;

S3: The corresponding application software are formed by using the established multi-component multi-phase flow simulation and analysis equations.

Furthermore, Step S1 is as follows:

S11: For any type of fluid motion equation, if it can be written as v=−λ∇p, λ is called generalized mobility, where v denotes the fluid flow velocity, ∇p denotes the pressure gradient, and the generalized mobility λ is a function of space position and time;

S12 The general mobility models with the same form are used to characterize the flow laws of fluid in the tube flow area of wellbores, pipes, fractures, vugs, holes, cavities, caves, fracture caves, karst caves and caverns, and the percolation area of porous media.

Furthermore, Step S2 is as follows:

S2: The generalized mobility of three-dimensional multi-phase flow

${\lambda_{k} = \begin{bmatrix} {\lambda_{k,{xx}}\left( {x,t} \right)} & {\lambda_{k,{xy}}\left( {x,t} \right)} & {\lambda_{k,{xz}}\left( {x,t} \right)} \\ {\lambda_{k,{yx}}\left( {x,t} \right)} & {\lambda_{k,{yy}}\left( {x,t} \right)} & {\lambda_{k,{yz}}\left( {x,t} \right)} \\ {\lambda_{k,{zx}}\left( {x,t} \right)} & {\lambda_{k,{zy}}\left( {x,t} \right)} & {\lambda_{k,{zz}}\left( {x,t} \right)} \end{bmatrix}},$

where k=1, 2, . . . , n_(p), n_(p) denotes the total phase number, x denotes space position, t denotes time, 9 components of generalized mobility λ_(k,xx), λ_(k,xy), λ_(k,xz), λ_(k,yx), λ_(k,yy), λ_(k,yz), λ_(k,zx), λ_(k,zy), λ_(k,zz) are all functions of space position x and time t;

S22: Rewriting the three-dimensional multi-phase flow motion equation into a standard form v_(k)=−λ_(k)∇p_(k) by applying three-dimensional multi-phase flow generalized mobility, wherc k=1, 2, . . . , n_(p), n_(p) denotes the total phase number,

$\nabla{= \left( {\frac{\partial\;}{\partial x},\frac{\partial\;}{\partial y},\frac{\partial\;}{\partial z}} \right)^{T}}$

is Hamilton operator, v_(k) is fluid velocity of k-phase, p_(k) is pressure of k-phase;

S23: Multi-component multi-phase flow simulation equation

The multi-component multi-phase flow equations considering convection term, diffusion term, accumulation term, adsorption term, and source/sink term are written as:

Component governing equation:

${{\left\lbrack {\nabla{\cdot {\sum\limits_{k = 1}^{n_{p}}\left( {\rho_{k}C_{ik}\lambda_{k}{\nabla\rho_{k}}} \right)}}} \right\rbrack + \left\lbrack {\nabla{\cdot {\sum\limits_{k = 1}^{n_{p}}\left( {{\varphi\rho}_{k}S_{k}D_{ik}{\nabla C_{ik}}} \right)}}} \right\rbrack} = {{\frac{\partial\;}{\partial t}\left\lbrack {\varphi {\sum\limits_{k = 1}^{n_{p}}\left( {\rho_{k}S_{k}C_{ik}} \right)}} \right\rbrack} + {\frac{\partial\;}{\partial t}\left\lbrack {\left( {1 - \varphi} \right)\rho_{r}V_{i}} \right\rbrack} + {\sum\limits_{k = 1}^{n_{p}}{C_{ik}q_{k}}}}},\mspace{79mu} {\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}},{i = 1},2,\ldots \mspace{14mu},n_{c}$

Energy conservation equation:

${{\left\lbrack {\nabla{\cdot {\sum\limits_{k = 1}^{n_{p}}\left( {\pi_{k}\rho_{k}\lambda_{k}{\nabla\rho_{k}}} \right)}}} \right\rbrack + \left\lbrack {{\nabla{\cdot \kappa}}{\nabla T}} \right\rbrack} = {{\frac{\partial\;}{\partial t}\left\lbrack {\varphi {\sum\limits_{k = 1}^{n_{p}}\left( {\rho_{k}S_{k}U_{k}} \right)}} \right\rbrack} + {\frac{\partial\;}{\partial t}\left\lbrack {\left( {1 - \varphi} \right)\rho_{r}U_{r}} \right\rbrack} + {\sum\limits_{k = 1}^{n_{p}}{\pi_{k}q_{k}}}}},\mspace{79mu} {\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}$

Auxiliary equations with saturation and capillary pressure:

Saturation equation

${{\sum\limits_{k = 1}^{n_{p}}S_{k}} = 1},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}$

Capillary pressure equation at α-β phase interface

p _(cαβ)(S _(w))=p _(α) −p _(β),(x,t)∈Ω×(0,T],α=1, . . . ,n _(p);β=1, . . . ,n _(p)

Phase equilibrium equation:

The phase equilibrium constant of component i in α and β phase:

K _(iαβ) =C _(iα) /C _(iβ) ,α=, . . . ,n _(p);β=1, . . . ,n _(p) ;i=1, . . . ,n _(c)

Mole percentage normalization condition of components in each phase:

${{\sum\limits_{i = 1}^{n_{c}}C_{ik}} = 1},{k = 1},\ldots \mspace{14mu},n_{p}$

The total mole percent of component i:

${Z_{i} = {\sum\limits_{k = 1}^{n_{p}}{C_{ik}}}},{i = 1},\ldots \mspace{14mu},n_{c}$

Normalization conditions for ratio of moles of each phase to the whole system:

$\begin{matrix} {{{\sum\limits_{i = 1}^{n_{c}}} = 1},{k = 1},\ldots \mspace{14mu},n_{p}} & \; \end{matrix}$

Boundary Condition Equation:

Boundary condition equation of pressure for each phase

${\left( {{c_{k,1}p_{k}} + {c_{k,2}\lambda_{k}\frac{\partial p_{k}}{\partial n^{\partial\Omega}}}} \right) = {g_{k}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}},{k = 1},\ldots \mspace{14mu},n_{p}$

Boundary condition equation of temperature

${\left( {{d_{1}T} + {d_{2}\kappa \frac{\partial T}{\partial n^{\delta\Omega}}}} \right) = {w\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}$

Initial saturation equation:

Initial saturation equation of each phase S_(k)(x,0)=l_(k)(x), x∈Ω,k=1, . . . ,n_(p)

Initial pressure equation:

Initial pressure equation of each phase

p _(k)(x,0)=ƒ_(k)(x),x∈Ω,k=1, . . . ,n _(p)

Initial temperature equation:

T(x,0)=τ(x),x∈Ω

Variable symbols description in multi-component multi-phase flow simulation analysis equations: ϕ is porosity, which is the function of average pressure p, %; n_(c) is the total component number, dimensionless; n_(p) is the total phase number, dimensionless; λ_(k) is the generalized mobility of k-phase, m²/(Pa·s); ρ_(k), ρ_(r) are densities of k-phase and rock, kg/m³; π_(k) is enthalpy of k phase, J/kg; U_(k), U_(r) are internal energy of k-phase and rock, J/kg; V_(i) is adsorption amount of component i, dimensionless; Sk is the k-phase saturation; t is time, s; t_(max) is the maximum of time, s; p_(k) is the k-phase pressure, Pa; l_(k) is the k-phase initial saturation distribution function; q_(k) is the source/sink term of k-phase, kg/(m³·s); ƒ_(k) is the k-phase initial pressure distribution function, Pa; K_(iαβ) is the phase equilibrium constant of component i in α and β phase, dimensionless; C_(ik) is the mole percent of component i in k-phase, dimensionless; D_(ik) is the diffusion coefficient of component i in k-phase, m²/s; Z_(i) is the total mole percent of component i, dimensionless;

is the ratio of k-phase to the whole system, dimensionless; g_(k) is the boundary functions of k-phase on reservoir boundary, dimensionless; w is boundary function of temperature on reservoir boundary, dimensionless; τ is the initial temperature distribution function of reservoirs, K; p_(cαβ) is the capillary pressure at α-β phase interface, Pa; Ω is reservoir space; ∂Ω is reservoir boundary including internal boundary and outer boundary; c_(k,1) is the pressure term coefficients of k-phase on reservoir boundary, 1/Pa; c_(k,2) is the k-phase coefficients of derivative terms along the outer normal direction on reservoir boundary condition, s/m; d₁ is the temperature term coefficient on reservoir boundary, 1/K; d₂ is temperature coefficients of derivative terms along the outer normal direction on reservoir boundary condition, s·m²/J; κ is coefficient of the thermal conductivity, J/(m·s·K); n^(∂Ω) is the outer normal direction on reservoir boundary, m; ∇ is the Hamilton operator; ∂ is the partial derivative sign;

S24: The analytical solution algorithms of above multi-component multi-phase flow simulation equations include direct solving method, Laplace transformation, Fourier transformation, and orthogonal transformation method; Their numerical methods include finite difference method, finite volume method, boundary element method, and finite element method; After solving, the pressure, temperature, and saturation in multi-phase flow are obtained, including the pressure, temperature, saturation, and mole percent of each component in each phase at any time and at any position in the study area.

Furthermore, Step S3 is as follows:

S31: The application software described above includes 5 main parts: data pre-processing system, numerical simulation system, analytical analysis system, and analysis results output system, data input and output management system, etc. Its analysis process includes reservoir definition, setting of initial and boundary conditions, wellbore and fracture setting, numerical simulator selection or fluid type and composition setting, generalized mobility model definition, grid design of numerical simulation, wellbore storage model setting, flow period and regime definition, coordinate transformation, setting of models and their type curve analysis, parameter adjustment and history fitting, dynamic prediction;

S32: The application software described above can be used for single and multi-well flow simulation of complex multi-component multi-phase flow reservoirs, multi-well interference analysis, deliverability analysis (i.e. steady well test analysis), transient pressure analysis (i.e. unsteady pressure well test analysis), transient rate analysis (i.e. production data analysis or rate decline analysis), transient temperature analysis (i.e. unsteady temperature analysis), well test design, and permanent downhole monitoring data analysis. The complex multi-component multi-phase flow reservoirs mentioned above include all types of fluid reservoirs, reservoirs with fluid injection, underground gas storage, ground water reservoirs, geothermal reservoirs, etc.

Beneficial Effects of the Invention as the Following

This invention simplifies the application of complex problems by defining generalized mobility, and realizes a wider application. Compared with the definition of equivalent permeability or equivalent percolation coefficient or converted percolation coefficient, it has a great improvement in the depth and breadth of application. The concept of generalized mobility has a wider range than the traditional concept. Generalized mobility covers generalized permeability or equivalent permeability or equivalent percolation coefficient or converted percolation coefficient, and is able to adapt to more complex applications. This invention extends the application of generalized permeability or equivalent permeability or equivalent percolation coefficient or converted percolation coefficient, etc. In addition, generalized mobility can be used to further define the parameters (fluid flow coefficient or transmissibility, pressure transmitting coefficient, etc.) related to fluid flow capacity and reservoir conductivity, so that the application scope of these parameters can be expanded.

In solving the problems of single well and multi well flow simulation analysis of complex reservoir with multi-component and multi-phase flow, inter well interference analysis, productivity analysis, transient pressure analysis (i.e. unsteady pressure well test analysis), transient flow analysis (i.e. production data analysis or production decline analysis), transient temperature analysis, well test design and downhole permanent monitoring, the modeling methods of this invention with defining the generalized mobility is more efficient than the methods of the first to the fourth categories mentioned above. At the same time, this invention realizes more and more complex models and methods compared with the fifth category method described above, and extends the application scope of the fifth category method described above.

The above mentioned complex multi-component multi-phase flow reservoirs include all types of reservoirs with fluid injection, underground gas storage, groundwater reservoirs, geothermal reservoirs, etc. The fluid can be a single phase of multi-component oil/gas/water and their multi-phase combinations, or it can be Newtonian fluid and non-Newtonian fluid. The compressibility of the fluid and rock as well as the transient flow characteristics are considered. The invention can unify different linear and nonlinear fluid motion equations by applying generalized mobility, so that for oil and gas reservoirs unified governing equations are able to be constructed by using the same form of motion equations in different regions and different scales. Therefore, it is more convenient to discretize the models, which reduces the complexity of the coupling problem and makes the model solution simple and unified.

Meanwhile, the invention can be used not only for the modeling of numerical simulation of pure cave system and large-scale fracture system, multi-well interference analysis, deliverability test analysis, transient pressure analysis, transient rate analysis, transient temperature analysis, and permanent downhole monitoring data analysis, it can also be used for well testing model constructions of fluid injection reservoirs with dominant Seepage flow channel. For the situation that fluid flow obeys linear flow laws or the generalized mobility is a constant, it is not necessary to pay attention to whether both tube flow (or free flow) and percolation exist at the same time so that the method of this invention can be applied for situations of either one of tube flow (or free flow) and percolation exists or both exist. Therefore, the modelling method of this invention could adapt to more complex reservoirs than conventional Darcy percolation modelling method.

This invention plays an important role for solving the problem of the single and multi-well flow simulation of complex multi-component multi-phase flow reservoirs, multi-well interference analysis, deliverability analysis, transient pressure analysis, transient rate analysis, transient temperature analysis, well test design, and permanent downhole monitoring data analysis.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows 18 types of basic structural units of a reservoir, which is provided by this invention. A complex reservoir can be formed through nesting, stacking and splicing of a plurality of basic reservoir structural units.

FIG. 2 shows 32 types of basic reservoir bodies, which is provided by this invention. One basic reservoir structural unit can be selected from one of 32 types of basic reservoirs. A complex reservoir can be formed through nesting, stacking and splicing of a plurality of basic reservoir structural units. Every basic reservoir structural unit can be selected from one of 32 types of basic reservoirs.

FIG. 3 is a schematic diagram of a complex reservoir model for tube flow and percolation coupling, which is provided in embodiment 1 of the invention. The whole reservoir space is consisted of four reservoir bodies and three different wells (wells may also be considered as a part of the reservoirs). Four reservoir bodies include two low-permeability reservoirs, one karst cave reservoir, and one high permeability reservoir; three wells include one inclined well, one vertical well, and one multi-segment fractured horizontal well. This is merely a kind of special case of the example.

FIG. 4 is an auxiliary plot of the product of the oil phase generalized mobility and the normal vector at the internal discrete control point, which is provided in embodiment 1 of the invention.

FIG. 5 is an auxiliary plot of the product of the water phase generalized mobility and the normal vector at the internal discrete control point, which is provided in embodiment 1 of the invention.

FIG. 6 is an auxiliary plot of the product of the gas phase generalized mobility and the normal vector at the internal discrete control point, which is provided in embodiment 1 of the invention.

FIG. 7 is an auxiliary plot of the product of the oil phase generalized mobility and the normal vector at the boundary discrete control point, which is provided in embodiment 1 of the invention.

FIG. 8 is an auxiliary plot of the product of the water phase generalized mobility and the normal vector at the boundary discrete control point, which is provided in embodiment 1 of the invention.

FIG. 9 is an auxiliary plot of the product of the gas phase generalized mobility and the normal vector at the boundary discrete control point, which is provided in embodiment 1 of the invention.

FIG. 10 is a schematic diagram of black oil model of oil/gas/water three-phase flow through treating the wellbore as inner boundary for a partially open vertical well located in a homogeneous reservoir, which is provided in embodiment 2 of the invention.

FIG. 11 is a schematic diagram of black oil model of oil/gas/water three-phase flow through treating the wellbore as reservoir for a partially open vertical well located in a homogeneous reservoir, which is provided in embodiment 3 of the invention.

FIG. 12 is a schematic diagram of oil phase flow model for a partially open vertical well located in a homogeneous reservoir through treating the wellbore as inner boundary, which is provided in embodiment 4 of the invention.

FIG. 13 is a schematic diagram of oil phase flow model for a partially open vertical well located in a homogeneous reservoir through treating the wellbore as reservoir, which is provided in embodiment 5 of the invention.

FIG. 14 is a schematic diagram of oil phase flow model for a fully open vertical well located in a homogeneous radial 2-zone composite reservoir through treating the wellbore as inner boundary, which is provided in embodiment 6 of the invention.

FIG. 15 is a schematic diagram of oil phase flow model for a fully open vertical well located in a homogeneous radial 2-zone composite reservoir through treating the wellbore as reservoir, which is provided in embodiment 7 of the invention.

FIG. 16 is a schematic diagram of a tube-shaped reservoir model, which is provided in embodiment 8 of the invention.

FIG. 17 is the typical pressure draw-down type curves of a tube-shaped reservoir model, which is provided in embodiment 8 of the invention. The typical characteristics include: {circle around (1)} early-stage of pressure derivative curve is parallel to the pressure difference curve with a ½ slope (linear flow); {circle around (2)} late-stage pressure derivative curve has a 1 slope (pseudo-steady flow).

FIG. 18 is the pressure build-up type curve corresponding to FIG. 17.

FIG. 19 is the typical pressure draw-down type curves corresponding to FIG. 17 with consideration of skin and wellbore storage effect. The early-stage pressure derivative curve overlaps with the pressure difference curves with a slope of 1. The pressure derivative curve then goes upward due to (positive) skin action.

FIG. 20 is a schematic diagram of a cylindrical reservoir model, which is provided in embodiment 9 of the invention.

FIG. 21 is the typical pressure draw-down type curves of a cylindrical reservoir model, which is provided in embodiment 9 of the invention. The typical characteristics include: {circle around (1)} early-stage of pressure derivative curve has a −½ slope (spherical flow); {circle around (2)} middle-stage pressure derivative curve has a 0 slope (radial flow); {circle around (3)} late-stage pressure derivative curve has a 1 slope (pseudo-steady flow).

FIG. 22 is the pressure build-up type curve corresponding to FIG. 21.

FIG. 23 is the typical pressure draw-down type curves corresponding to FIG. 21 with consideration of skin and wellbore storage effect. The early-stage pressure derivative curve overlaps with the pressure difference curves with a slope of 1. The pressure derivative curve then goes upward due to (positive) skin action.

FIG. 24 is the typical pressure draw-down type curves of a cylindrical reservoir model, which is provided in embodiment 9 of the invention. The typical characteristics include: {circle around (1)} early-stage of pressure derivative curve has a −½ slope (spherical flow); {circle around (2)} middle-stage pressure derivative curve has a ½ slope (linear flow); {circle around (3)} late-stage pressure derivative curve has a 1 slope (pseudo-steady flow).

FIG. 25 is the pressure build-up type curve corresponding to FIG. 24.

FIG. 26 is the typical pressure draw-down type curves corresponding to FIG. 24 with consideration of skin and wellbore storage effect. The early-stage pressure derivative curve overlaps with the pressure difference curves with a slope of 1. The pressure derivative curve then goes upward due to (positive) skin action.

FIG. 27 is a schematic diagram of a spherical reservoir model, which is provided in embodiment 10 of the invention.

FIG. 28 is the typical pressure draw-down type curves of a spherical reservoir model, which is provided in embodiment 10 of the invention. The typical characteristics include: (Dearly-stage of pressure derivative curve has a −½ slope (spherical flow); late-stage pressure derivative curve has a 1 slope (pseudo-steady flow).

FIG. 29 is the pressure build-up type curve corresponding to FIG. 28.

FIG. 30 is the typical pressure draw-down type curves corresponding to FIG. 28 with consideration of skin and wellbore storage effect. The early-stage pressure derivative curve overlaps with the pressure difference curves with a slope of 1. The pressure derivative curve then goes upward due to (positive) skin action.

FIG. 31 is a schematic diagram of a composite model of hollow cylinder and cylindrical reservoir, which is provided in embodiment 11 of this invention.

FIG. 32 is the typical pressure draw-down type curves of a composite model of hollow cylinder and cylindrical reservoir, which is provided in embodiment 11 of the invention. The typical characteristics is that pressure derivative curve successively shows a −½ slope (spherical flow), 0 slope (radial flow of cylindrical reservoir), the junction of cylindrical reservoir and hollow cylindrical reservoir goes upward (transition regime), 0 slope (radial flow of hollow cylindrical reservoir), 1 slope (pseudo-steady flow).

FIG. 33 is the pressure build-up type curve corresponding to FIG. 32.

FIG. 34 is the typical pressure draw-down type curves corresponding to FIG. 32 with consideration of skin and wellbore storage effect. The early-stage pressure derivative curve overlaps with the pressure difference curves with a slope of 1. The pressure derivative curve then goes upward due to (positive) skin action.

FIG. 35 is the typical pressure draw-down type curves of a hollow cylinder and cylindrical reservoir composite model, which is provided in embodiment 11 of the invention. The typical characteristics is that pressure derivative curve successively shows a −½ slope (spherical flow), 0 slope (radial flow of cylindrical reservoir), the junction of cylindrical reservoir and hollow cylindrical reservoir goes downward with a −½ slope (transient period), 0 slope (radial flow of hollow cylindrical reservoir), 1 slope (pseudo-steady flow).

FIG. 36 is the pressure build-up type curve corresponding to FIG. 35.

FIG. 37 is the typical pressure draw-down type curves corresponding to FIG. 35 with consideration of skin and wellbore storage effect. The early-stage pressure derivative curve overlaps with the pressure difference curves with a slope of 1. The pressure derivative curve then goes upward due to (positive) skin action.

FIG. 38 is a schematic diagram of a composite model of tube-shaped and spherical reservoir, which is provided in embodiment 12 of the invention.

FIG. 39 is the typical pressure draw-down type curves of tube-shaped and spherical reservoir composite model, which is provided in embodiment 12 of the invention. The typical characteristics include: {circle around (1)} early-stage of pressure derivative curve is parallel to the pressure difference curve with a ½ slope (linear flow); {circle around (2)} middle-stage pressure derivative curve goes downward; {circle around (3)} late-stage pressure derivative curve has a 1 slope (pseudo-steady flow).

FIG. 40 is the pressure build-up type curve corresponding to FIG. 39.

FIG. 41 is the typical pressure draw-down type curves corresponding to FIG. 39 with consideration of skin and wellbore storage effect. The early-stage pressure derivative curve overlaps with the pressure difference curves with a slope of 1. The pressure derivative curve then goes upward due to (positive) skin action.

FIG. 42 is the vertical well Blasingame type curves based on a cylindrical reservoir model, which is provided in embodiment 9 of the invention.

FIG. 43 is the vertical well Agarwal-Gardner type curves based on a cylindrical reservoir model, which is provided in embodiment 9 of the invention.

FIG. 44 is the vertical well NP1 type curves based on a cylindrical reservoir model, which is provided in embodiment 9 of the invention.

FIG. 45 is the vertical well Transient type curves based on a cylindrical reservoir model, which is provided in embodiment 9 of the invention.

FIG. 46 is the schematic diagram of a one-dimensional tube-shaped reservoir model, which is provided in embodiment 13 [high-speed non-Darcy flow regime I (0≤x≤X₁)+Darcy flow regime II (X₁≤x≤X₂)].

FIG. 47 is the generalized mobility type curves of Darcy flow regime II of a one-dimensional tube-shaped reservoir model, which is provided in embodiment 13 [high-speed non-Darcy flow regime I (0≤x≤X₁)+Darcy flow regime II (X₁≤x≤X₂)].

FIG. 48 is the generalized mobility type curves of Darcy flow regime II of a one-dimensional tube-shaped reservoir model, which is provided in embodiment 13 [β=0 in high-speed non-Darcy flow regime I becomes Darcy flow regime I (0≤x≤X₁)+Darcy flow regime II(X₁≤x≤X₂)].

FIG. 49 is the comparison plot between high-speed non-Darcy flow and Darcy flow of a one-dimensional tube-shaped reservoir model, which is provided in embodiment 13 (it becomes Darcy flow when β=0 in high-speed non-Darcy flow).

FIG. 50 is a generalized mobility variation type curve of transient temperature analysis model with oil single-phase flow, which is provided by embodiment 18: The larger the generalized mobility, the lower the position of temperature difference and temperature difference derivative curve.

DETAILED DESCRIPTION OF EMBODIMENTS

The name of the invention is a flow simulation and transient well analysis method based on generalized tube flow and percolation coupling.

Through comparing the Hagen-Poiseuille (1839,1840) formula of laminar flow and tube flow with the Darcy formula of conventional percolation, it is found that there is no essential difference in mathematical expression form between the two formulas. They both are linear functions with positive proportion i.e. The average velocity of fluid is proportional to the pressure gradient. Fluid flow laws described by both laminar and tube flow formula and Darcy's conventional percolation formula is linear flow. However, Fluid flow laws, which is described by turbulent tube flow equation, Forchheimer (1901) binomial high-speed non-Darcy formula, power-law non-Newton formula, low-speed non-Darcy percolation equation, free flow Navier-Stokes equation, etc, is a nonlinear flow. In order to unify the linear flow and nonlinear flow and consider the anisotropy of the reservoir or others, this invention proposed that the fluid flow velocity of underground fluid flow motion equations are uniformly written as the product of the generalized mobility and the pressure gradient of the negative direction, which means

v _(k)=−λ_(k) ∇p _(k)

where

$\lambda_{k} = \begin{bmatrix} {\lambda_{k,{xx}}\left( {x,t} \right)} & \; & {\lambda_{k,{xy}}\left( {x,t} \right)} & {\lambda_{k,{xz}}\left( {x,t} \right)} \\ {\lambda_{k,{yx}}\left( {x,t} \right)} & \; & {\lambda_{k,{yy}}\left( {x,t} \right)} & {\lambda_{k,{yz}}\left( {x,t} \right)} \\ {\lambda_{k,{zx}}\left( {x,t} \right)} & \; & {\lambda_{k,{zy}}\left( {x,t} \right)} & {\lambda_{k,{zz}}\left( {x,t} \right)} \end{bmatrix}$

is the generalized mobility of three-dimensional multi-phase flow [unit: m2/(Pa·s)]. where k=1, 2, . . . , n_(p), n_(p) denotes the total phase number, x denotes space position, t denotes time, 9 components of generalized mobility λ_(k,xx), λ_(k,xy), λ_(k,xz), λ_(k,yx), λ_(k,yy), λ_(k,yz), λ_(k,zx), λ_(k,zy), λ_(k,zz) are all functions of space position x and time t.

$\nabla{= \left( {\frac{\partial}{\partial x},\frac{\partial}{\partial y},\frac{\partial}{\partial z}} \right)^{T}}$

is Hamilton operator (unit: 1/m), v_(k) is fluid velocity (m/s), p_(k) is pressure (Pa).

Because the generalized mobility defined in this invention itself covers the concepts of generalized permeability or equivalent permeability, equivalent percolation coefficient or converted percolation coefficient, when solving some relatively simple practical problems, the use of these definitions can also achieve the similar effect of generalized mobility. If the parameters (such as fluid flow coefficient or transmissibility, pressure transmitting coefficient, etc.) related to fluid flow capacity and reservoir conductivity are defined by using the definition method of this invention, the application scope of the relevant parameters can be extended.

The invention can be applied to fluid types including multi-component oil/gas/water single-phase flow and multi-component multi-phase flow. The fluid types can be Newton and non-Newtonian. The flowing laws can be linear, non-linear, or locally linear and locally nonlinear.

The further detailed descriptions of this invention are given in following by combining with drawings. The following embodiments are described only for the purpose of illustration and not for any limitation to the scope of the present disclosure.

A flow simulation and transient well analysis method based on generalized tube flow and percolation coupling includes:

S1: Based on defining the generalized mobility, fluid flow laws in different subset of study area are characterized by using the generalized mobility models with the same form;

S2: On the basis of generalized mobility, the multi-component multi-phase flow governing equations are established by considering convection term, diffusion term, accumulation term, adsorption term, and source/sink term. Then a whole set of multi-component multi-phase flow simulation equations are created through combining energy conservation equation, auxiliary equations with saturation and capillary pressure, initial saturation equation, initial pressure equation, initial temperature equation, phase equilibrium equation, and boundary condition equations; The pressure, temperature and saturation of multi-phase fluid as well as the mole percentage of each component in each phase at any point in the study areas are obtained by solving the above multi-component multi-phase flow simulation equation;

S3: The corresponding application software are formed by using the established multi-component multi-phase flow simulation and analysis equations.

wherein S1 (Based on defining the generalized mobility, fluid flow laws in different subset of study area are characterized by using the same formed generalized mobility models) includes:

(1) For any type of fluid motion equation, if it can be written as v=−λ∇p, λ is called generalized mobility, where v denotes the fluid flow velocity, ∇p denotes the pressure gradient, and the generalized mobility λ is a function of space position and time. (2) The general mobility models with the same form are used to characterize the flow laws of fluid in the tube flow area of wellbores, pipes, fractures, vugs, holes, cavities, caves, fracture caves, karst caves and caverns, and the percolation area of porous media.

wherein S2 (On the basis of generalized mobility, the multi-component multi-phase flow governing equations are established by considering convection term, diffusion term, accumulation term, adsorption term, and source/sink term. Then a whole set of multi-component multi-phase flow simulation equations are created through combining energy conservation equation, auxiliary equations with saturation and capillary pressure, initial saturation equation, initial pressure equation, initial temperature equation, phase equilibrium equation, and boundary condition equations; The pressure, temperature and saturation of multi-phase fluid as well as the mole percentage of each component in each phase at any point in the study areas are obtained by solving the above multi-component multi-phase flow simulation equation) includes:

(1) The generalized mobility of three-dimensional multi-phase flow

${\lambda_{k} = \begin{bmatrix} {\lambda_{k,{xx}}\left( {x,t} \right)} & \; & {\lambda_{k,{xy}}\left( {x,t} \right)} & {\lambda_{k,{xz}}\left( {x,t} \right)} \\ {\lambda_{k,{yx}}\left( {x,t} \right)} & \; & {\lambda_{k,{yy}}\left( {x,t} \right)} & {\lambda_{k,{yz}}\left( {x,t} \right)} \\ {\lambda_{k,{zx}}\left( {x,t} \right)} & \; & {\lambda_{k,{zy}}\left( {x,t} \right)} & {\lambda_{k,{zz}}\left( {x,t} \right)} \end{bmatrix}},$

where k=1, 2, . . . , n_(p), n_(p) denotes the total phase number, x denotes space position, t denotes time, 9 components of generalized mobility λ_(k,xx), λ_(k,xy), λ_(k,xz), λ_(k,yx), λ_(k,yy), λ_(k,yz), λ_(k,zx), λ_(k,zy), λ_(k,zz) are all functions of space position x and time t.

From the generalized mobility of three-dimensional multi-phase flow, it is easy to obtain the generalized mobility of two-dimensional multi-phase flow

${\lambda_{k} = \begin{bmatrix} {\lambda_{k,{xx}}\left( {x,t} \right)} & {\lambda_{k,{xy}}\left( {x,t} \right)} \\ {\lambda_{k,{yx}}\left( {x,t} \right)} & {\lambda_{k,{yy}}\left( {x,t} \right)} \end{bmatrix}},$

where k=1, 2, . . . , n_(p), n_(p) denotes the total phase number, x denotes space position, t denotes time, 4 components of generalized mobility λ_(k,xx), λ_(k,xy), λ_(k,yx), λ_(k,yy), are all functions of space position x and time t.

From the generalized mobility of three-dimensional multi-phase flow, it is easy to obtain the generalized mobility of one-dimensional multi-phase flow λ_(k)=λ_(k,xx)(x,t), where k=1, 2, . . . , n_(p), n_(p) denotes the total phase number, x denotes space position, t denotes time.

Rewriting the three-dimensional multi-phase flow motion equation into a standard form v_(k)=−λ_(k)∇p_(k) by applying three-dimensional multi-phase flow generalized mobility, where k=1, 2, . . . , n_(p), n_(p) denotes the total phase number,

$\nabla{= \left( {\frac{\partial}{\partial x},\frac{\partial}{\partial y},\frac{\partial}{\partial z}} \right)^{T}}$

is Hamilton operator, v_(k) is fluid velocity of k-phase, p_(k) is pressure of k-phase.

Rewriting the two-dimensional multi-phase flow motion equation into a standard form v_(k)=−λ_(k)∇p_(k) by applying two-dimensional multi-phase flow generalized mobility, where k=1, 2, . . . , n_(p), n_(p) denotes the total phase number.

$\nabla{= \left( {\frac{\partial}{\partial x},\frac{\partial}{\partial y}} \right)^{T}}$

is Hamilton operator, v_(k) is fluid velocity of k-phase, p_(k) is pressure of k-phase.

Rewriting the one-dimensional multi-phase flow motion equation into a standard form v_(k)=λ_(k)∇p_(k) by applying one-dimensional multi-phase flow generalized mobility, where k=1, 2, . . . , n_(p), n_(p) denotes the total phase number,

$\nabla{= \frac{\partial}{\partial x}}$

is Hamilton operator, v_(k) is fluid velocity of k-phase, p_(k) is pressure of k-phase. (3) Multi-component multi-phase flow simulation equation

The multi-component multi-phase flow equations considering convection term, diffusion term, accumulation term, adsorption term, and source/sink term are written as:

Component governing equation:

${{\left\lbrack {\nabla{\cdot {\sum\limits_{k = 1}^{n_{p}}\; \left( {\rho_{k}C_{ik}\lambda_{k}{\nabla p_{k}}} \right)}}} \right\rbrack + \left\lbrack {\nabla{\cdot {\sum\limits_{k = 1}^{n_{p}}\; \left( {{\varphi\rho}_{k}S_{k}D_{ik}{\nabla C_{ik}}} \right)}}} \right\rbrack} = {{\frac{\partial}{\partial t}\left\lbrack {\varphi {\sum\limits_{k = 1}^{n_{p}}\; \left( {\rho_{k}S_{k}C_{ik}} \right)}} \right\rbrack} + {\frac{\partial}{\partial t}\left\lbrack {\left( {1 - \varphi} \right)\rho_{r}V_{i}} \right\rbrack} + {\sum\limits_{k = 1}^{n_{p}}\; {C_{ik}q_{k}}}}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}},{i = 1},2,...\mspace{14mu},\; n_{c}$

Energy conservation equation:

${{\left\lbrack {\nabla{\cdot {\sum\limits_{k = 1}^{n_{p}}\; \left( {_{k}\rho_{k}\lambda_{k}{\nabla p_{k}}} \right)}}} \right\rbrack + \left\lbrack {{\nabla{\cdot \kappa}}{\nabla T}} \right\rbrack} = {{\frac{\partial}{\partial t}\left\lbrack {\varphi {\sum\limits_{k = 1}^{n_{p}}\; \left( {\rho_{k}S_{k}U_{k}} \right)}} \right\rbrack} + {\frac{\partial}{\partial t}\left\lbrack {\left( {1 - \varphi} \right)\rho_{r}U_{r}} \right\rbrack} + {\sum\limits_{k = 1}^{n_{p}}{_{k}q_{k}}}}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}$

Auxiliary equations with saturation and capillary pressure:

Saturation equation

${{\sum\limits_{k = 1}^{n_{p}}S_{k}} = 1},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}$

Capillary pressure equation at α-β phase interface

p _(cαβ)(S _(w))=p _(α)-p _(β),(x,t)∈Ω×(0,T],α=1, . . . ,n _(p);β₁ , . . . ,n _(p)

Equilibrium equation:

The equilibrium constant of component i in α and β phase:

K _(iαβ) =C _(iα) /C _(iβ),α=1, . . . ,n _(p);β=1, . . . ,n _(p) ;i=1, . . . ,n _(c)

Mole percentage normalization condition of components in each phase:

${{\sum\limits_{i = 1}^{n_{c}}\; C_{ik}} = 1},{k = 1},...\mspace{14mu},n_{p}$

The total mole percent of component i:

${Z_{i} = {\sum\limits_{k = 1}^{n_{p}}\; {C_{ik}}}},{i = 1},...\mspace{14mu},n_{c}$

Normalizing conditions for ratio of moles of each phase to the whole system:

${{\sum\limits_{i = 1}^{n_{c}}\; } = 1},{k = 1},...\mspace{14mu},n_{p}$

Boundary condition equation:

Boundary condition equation of pressure for each phase

${\left( {{c_{k,1}p_{k}} + {c_{k,2}\lambda_{k}\frac{\partial p_{k}}{\partial n^{\partial\Omega}}}} \right) = {g_{k}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}},{k = 1},...\mspace{14mu},{{n_{p}\left( {{d_{1}T} + {d_{2}\kappa \frac{\partial T}{\partial n^{\partial\Omega}}}} \right)} = {w\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}$

Initial saturation equation:

Initial saturation equation of each phase

S _(k)(x,0)=l _(k)(x),x∈Ω,k=1, . . . ,n _(p)

Initial pressure equation:

Initial pressure equation of each phase:

p _(k)(x,0)=ƒ_(k)(x),x∈Ω,k=1, . . . ,n _(p)

Initial temperature equation:

T(x,0)=τ(x),x∈Ω

Variable symbols description in multi-component multi-phase flow simulation analysis equations: ϕ is porosity, which is the function of average pressure p, %; n_(c) is the total component number, dimensionless; n_(p) is the total phase number, dimensionless; λ_(k) is the generalized mobility of k-phase, m²/(Pa·s); ρ_(k), ρ_(r) are densities of k-phase and rock, kg/m³; π_(k) is enthalpy of k phase, J/kg; U_(k), U_(r) are internal energy of k-phase and rock, J/kg; Vi is adsorption amount of component i, dimensionless; Sk is the k-phase saturation; t is time, s; t_(max) is the maximum of time, s; p_(k) is the k-phase pressure, Pa; l_(k) is the k-phase initial saturation distribution function q_(k) is the source/sink term of k-phase, kg/(m³·s); ƒ_(k) is the k-phase initial pressure distribution function, Pa; K_(iαβ) is the phase equilibrium constant of component i in α and β phase, dimensionless; C_(ik) is the mole percent of component i in k-phase, dimensionless; D_(ik) is the diffusion coefficient of component i in k-phase, m²/s; Z_(i) is the total mole percent of component i, dimensionless;

is the ratio of k-phase to the whole system, dimensionless; g_(k) is the boundary functions of k-phase on reservoir boundary, dimensionless; w is boundary function of temperature on reservoir boundary, dimensionless; τ is the initial temperature distribution function of reservoirs, K; pee is the capillary pressure at α-β phase interface, Pa; Ω is reservoir space; ∂Ω is reservoir boundary including internal boundary and outer boundary; c_(k,1) is the pressure term coefficients of k-phase on reservoir boundary, 1/Pa c_(k,2) is the k-phase coefficients of derivative terms along the outer normal direction on reservoir boundary condition, s/m; d₁ is the temperature term coefficient on reservoir boundary, 1/K; d₂ is temperature coefficients of derivative terms along the outer normal direction on reservoir boundary condition, s·m²/J; κ is coefficient of the thermal conductivity, J/(m·s·K); n^(∂Ω) is the outer normal direction on reservoir boundary, m; ∇ is the Hamilton operator; ∂ is the partial derivative sign;

(4) The analytical solution of above multi-component multi-phase flow simulation equations include direct solving method, Laplace transformation, Fourier transformation, and orthogonal transformation method; The numerical methods include finite difference method, finite volume method, boundary element method, and finite element method; After solving, the pressure, temperature, and saturation in multi-phase flow are obtained, including the pressure, temperature, saturation, and mole percent of each component in each phase at any time and at any position in the study area.

Wherein S3 (The corresponding application software are developed on the basis of multi-component multi-phase flow simulation analysis equations) includes:

(1) The application software described above includes 5 main parts: data pre-processing system, numerical simulation system, analytical analysis system, and analysis results output system, data input and output management system, etc. The key technologies include reservoir definition, setting of initial and boundary conditions, wellbore and fracture setting, numerical simulator selection or fluid type and composition setting, generalized mobility model definition (including defining generalized permeability or equivalent permeability, etc., in simplified cases), grid design of numerical simulation, wellbore storage model setting, flow period and regime definition, coordinate transformation, setting of models and their type curve analysis, parameter adjustment and history fitting, dynamic prediction. The details are as follows:

(1.1) Reservoir Definition

The basic reservoir structural unit is shown in FIG. 1. The reservoir is composed of a single or several basic reservoir structural units, which can be nested, stacked and spliced among each other.

Reservoir boundaries include constant pressure boundary, variable pressure boundary, sealed boundary, semi-permeable boundary, infinite acting boundary and so on.

The reservoir types are as shown in FIG. 2. The reservoir types of basic reservoir structural unit include homogeneous, dual porous media, triple porous media, fractal media, cavities caves, caverns, fractures and so on.

(1.2) Setting of Initial and Boundary Conditions

Initialization of pressure, temperature, saturation and internal and external boundary conditions. The Inner boundary models include effective wellbore diameter model, source function model and so on.

(1.3) Wellbore and Fracture Setting

Well types include vertical well, horizontal well, inclined well, fractured well, multibranch well and so on.

The wellbore and fracture types include uniform flux, infinite conductivity, and finite conductivity and so on.

The wellbore and fracture opening degree includes fully open and partially open.

(1.4) Numerical Simulator Selection or Fluid Type and Composition Setting

The numerical simulator selection includes black oil model, compositional model and thermal recovery model. The fluid phases (including composition) include oil single-phase, water single-phase, gas single-phase, oil-water two-phase, oil-gas two-phase, gas-water two-phase, oil-gas-water three phase, condensate gas, carbon dioxide, foam fluid, polymer and so on.

(1.5) Generalized Mobility Model Definition (Including Defining Generalized Permeability or Equivalent Permeability, Etc., in Simplified Cases)

The generalized mobility models include: {circle around (1)} Newton fluid+Darcy flow, {circle around (2)} Newton fluid+Laminar tube flow, {circle around (3)} Newton fluid+High speed Non-Darcy flow, {circle around (4)} Newton fluid+turbulent tube flow, {circle around (5)} Newton fluid+pressure sensitive flow, {circle around (6)} Non-Newton fluid+Darcy flow, {circle around (7)} Non-Newton fluid+Laminar tube flow, {circle around (8)} Non-Newton fluid+pressure sensitive flow, {circle around (9)} Non-Newton fluid+turbulent tube flow, {circle around (10)} Newton fluid+low speed non-Darcy flow, {circle around (11)} Newton fluid+slippage effect, etc.

EXAMPLES

{circle around (1)} Newton fluid+Darcy flow

On the basis of Darcy's percolation formula (1856), λ is written as:

$\lambda = \frac{K}{\mu}$

Where μ is the viscosity of the fluid, K is the permeability,

For the form of considering the influence of gravity, λ is written as:

$\lambda = {\frac{K}{\mu}\left( {1 - \frac{\rho g\cos \alpha}{\frac{\partial p}{\partial l}}} \right)}$

Where μ is the viscosity of the fluid, K is the permeability, ρ is the density of the fluid, g is the acceleration of gravity, p is the pressure, l is the distance, α is the angle between pressure gradient direction and gravity direction.

{circle around (2)} Newton fluid+Laminar tube flow

On the basis of Hagen-poiseuille's formula (1839,1840), λ is written as:

$\lambda = \frac{d^{2}}{32\mu}$

Where μ is the viscosity of the fluid, d is the hydraulic diameter of tubes.

{circle around (3)} Newton fluid+High speed Non-Darcy flow

On the basis of Forchheimer binomial high-speed Non-darcy formula (1901), λ is written as:

$\lambda = \frac{1}{\frac{\mu}{K} + {{\beta\rho}{v}}}$

Where μ is the viscosity of the fluid, K is the permeability, β is the high speed Non-Darcy factor, ρ is the density of the fluid, v is the velocity of the fluid.

{circle around (4)} Newton fluid+turbulent tube flow

On the basis of Darcy-Weisbach formula (1845) and Colebrook on-way resistance formula (1938), λ is written as:

$\lambda = {0.0232\frac{d}{\rho \; v}\left( {{\frac{{d\; \rho \; v}\;}{d}\frac{ɛ}{d}} - {18.574{W\left( {0.199\frac{d\; \rho \; v}{\mu}e^{0.0538\frac{d\; \rho \; v}{\mu}\frac{ɛ}{d}}} \right)}}} \right)^{2}}$

Where μ is the viscosity of the fluid, d is the hydraulic diameter of tubelines, ρ is the density of the fluid, ε/d is the relative roughness, v is the velocity, W(g) is the Lambert W function or product logarithm function.

{circle around (5)} Newton fluid+pressure sensitive flow

On the basis of permeability modulus (pressure sensitivity) formula, λ is written as

$\lambda = \frac{K_{i}e^{\gamma {({p - p_{i}})}}}{\mu}$

Where μ is the viscosity of the fluid, K_(i) is the initial permeability of reservoir, γ is the permeability modulus, P is the pressure, p_(i) is the initial reservoir pressure.

{circle around (6)} Non-Newton fluid+Darcy flow

On the basis of the Darcy's percolation formula, Qstwald-DeWaele power-law fluid viscosity formula (1923,1925) and Hirasaki-Pope shear rate formula (1974), λ is written as:

λ = (k/μ_(eff)) ⋅ v^(1 − n) $\mu_{eff} = {\frac{H}{12}\left( {9 + \frac{3}{n}} \right)^{n}\left( {150K\varphi} \right)^{\frac{1 - n}{2}}}$

Where μ_(eff) is the effective viscosity, K is the permeability, n is the power-law index, v is the fluid flow velocity, H is the consistency coefficient, ϕ is the porosity.

{circle around (7)} Non-Newton fluid+Laminar tube flow

On the basis of Hagen-poiseuille laminar tube flow formula (1839,1840), Qstwald-DeWaele power-law fluid viscosity formula (1923,1925) and Hirasaki-Pope shear rate formula (1974), λ is written as:

$\lambda = \frac{d^{2}}{32\mu_{eff}v^{n - 1}}$

$\mu_{eff} = {\frac{H}{12}\left( {9 + \frac{3}{n}} \right)^{n}\left( \frac{75d^{2}}{16} \right)^{\frac{1 - n}{2}}}$

Where μ_(eff) is the effective viscosity, d is the hydraulic diameter of tubes, n is the power-law index, v is the fluid flow velocity, H is the consistency coefficient.

{circle around (8)} Non-Newton fluid+pressure sensitive flow

On the basis of the permeability modulus(stress sensitivity) formula, Qstwald-DeWaele power-law fluid viscosity formula (1923,1925) and Hirasaki-Pope shear rate formula (1974), λ is written as:

$\lambda = \frac{K_{i}e^{\gamma {({p - p_{i}})}}}{\mu_{eff}v^{n - 1}}$ $\mu_{eff} = {\frac{H}{12}\left( {9 + \frac{3}{n}} \right)^{n}\left( {150K\varphi} \right)^{\frac{1 - n}{2}}}$

Where μ_(eff) is the effective viscosity, K_(i) is the initial permeability of reservoir, γ is the permeability modulus, p is the pressure, p_(i) is the initial reservoir pressure, v is the fluid flow velocity, n is the power-law index, H is the consistency coefficient, K is the permeability, ϕ is the porosity.

{circle around (9)} Non-Newton fluid+turbulent tube flow

On the basis of Darcy-Weisbach formula (1845), Colebrook resistance formula along the way (1938), Qstwald-DeWaele power-law fluid viscosity formula (1923,1925), and Hirasak-Pope shear rate formula (1974), λ is written as:

$\lambda = {0.0232\frac{d}{\rho \; v}\left( {{\frac{d\rho}{\mu_{eff}v^{n - 2}}\frac{ɛ}{d}} - {18.574{W\left( {0.199\ \frac{dp}{\mu_{eff}v^{n - 2}}e^{0.0538\frac{d\; \rho}{\mu_{eff}v^{n - 2}}\frac{ɛ}{d}}} \right)}}} \right)^{2}}$ $\mspace{20mu} {\mu_{eff} = {\frac{H}{12}\left( {9 + \frac{3}{n}} \right)^{n}\left( \frac{75d^{2}}{16} \right)^{\frac{1 - n}{2}}}}$

Where μ_(eff) a is the effective viscosity, d is the hydraulic diameter of tubes, ρ is the density of the fluid,

$\frac{ɛ}{d}$

is the relative roughness, v is the velocity of the fluid, n is the power-law index, H is the consistency coefficient, W(g) is the Lambert W function or product logarithm function. {circle around (10)} Newton fluid+low speed non-Darcy flow or Bingham (1919) Non-Newton fluid+Darcy percolation flow

λ is written as:

$\lambda = {\frac{K}{\mu}\left( {1 - \frac{G}{\frac{\partial p}{\partial l}}} \right)}$

Where μ is the viscosity of the fluid, K is the permeability, G is the low-speed non-darcy factor or pseudo-threshold pressure gradient, p is the pressure, l is the distance.

{circle around (11)} Newton fluid+slippage effect

λ is written as:

$\lambda = \frac{k\left( {1 + {b/p}} \right)}{\mu}$

Where μ is the viscosity of the fluid, K is the permeability, b is the Klinkenberg factor, p is the pressure.

For non-Darcy percolation in the above formula, besides Forchheimer (1901) binomial high-speed non-Darcy formula and permeability modulus formula (stress sensitivity), there are also formulas created as a replacement by Irmay (1968), Izbash (1971), Swartzendruber (1962). Huang Tingzhang (1997), Halex (1979) and so on. The Colebrook (1939)'s along-way resistance formula above can be replaced by other formulas such as Blasius (1913). Nikuradse (1933), Churchill (1977). The Qstwald-DeWaele (1923,1925)'s power-law fluid viscosity formula above can be replaced by other formulas such as Bingham (1919), Cross (1979). Carreau (1979). Meter (1964), Sisko (1958); The Hirasaki-Pope (1974) 's shear rate formula can be replaced by other formulas such as Gogarty (1967), W. Littmann (1988), Camillen (1987), Rabinowitsch (1929), Jennings (1971). In addition, for low-density gas flow cases, the generalized mobility expression can be obtained by correcting the non-Darcy effect with the Klinkenberg equation (1941).

(1.6) Grid Design of Numerical Simulation

The design of grid types (orthogonal, corner, hybrid, etc.), grid directions (considering sediment source direction, flow direction, well location, etc.), grid boundaries, grid layers, grid sizes, grid density, etc.

(1.7) Wellbore Storage Model Setting

Wellbore storage models include constant wellbore storage model, changing wellbore storage model [Fair model (1981), Hegeman model (1993), leaky packer model and near wellbore fracture storage model (Spivey, 1999.

(1.8) Flow Period and Regime Definition

The flow period definition includes pressure build-up, pressure falloff, pressure drawdown, injection test, and slug flow. The flow regime definition includes linear flow, bilinear flow, radial flow and spherical flow.

(1.9) Coordinate Transformation (Flow Rate History Influence Treatment)

The coordinate transformation methods include equivalent constant flow rate history Horner method, equivalent constant flow rate history Agarwal method, variable flow rate history Horner method, variable flow rate history Agarwal method, deconvolution method and so on.

(1.10) Setting of Models and their Type Curve Analysis

The type curves of model analysis include various model type curves for pressure, flow and temperature analysis. The pressure analysis p type curves include full view pressure history plot, linear plot, semi-logarithmic plot, Gringarten-Bourdet log-log plot, linear flow plot, bilinear flow plot, (hemi)spherical flow plot, PPD plot, SLPD plot, early time plot, ζ function plot, curve comparison of previous single well or well group and so on.

The type curves of production analysis include blasingame plate, Agarwal Gardner plate, NPI plate and transient plate. The Type curves of temperature analysis include double logarithm diagram of temperature change and its derivative.

See Table 1 for the combination of tube flow (free flow)—percolation coupling model methods available in the numerical simulation and type curve analysis.

(1.11) Parameter Adjustment and History Matching

The adjustable parameters include permeability, saturation and porosity. History matching indexes include pressure index, production index, temperature index, fluid property index and so on.

(1.12) Dynamic Prediction

Dynamic prediction includes various development indexes of the prediction scheme for economic evaluation.

TABLE 1 The tube flow percolation coupling models combined in the software (Scope cases of Claims) Different combinations of models Application field Well and reservoir coupling, Combination Transient well Numerical Numerical simulation coupling between reservoirs, of fluid types analysis (pressure, simulation of oil of underground boundary coupling, etc and motion laws rate and temperature) and gas reservoir water reservoir Coupling of single/dual Remark 1 This invention Ones published Ones published by medium homogeneous by others limited others limited to use reservoir and vertical or to use of of equivalent horizontal well equivalent percolation coefficient permeability Remark 2 This invention This invention This invention Coupling of triple media Remark 1 This invention This invention Ones published by hreservoir and vertical others limited to or horizontal well use of equivalent percolation coefficient Remark 2 This invention This invention This invention Coupling of different Remark 3 This invention This invention This invention reservoirs and different well types (the above cases are not included) Coupling of different Remark 3 This invention This invention This invention reservoirs Coupling of different Remark 3 This invention This invention This invention reservoirs and different types of boundaries Remark 1 Three cases of fluid type and motion law combinations: {circle around (1)}Newtonian fluid + Darcy flow; {circle around (2)}Newtonian fluid + laminar tube flow; {circle around (4)}Newtonian fluid + turbulent tube flow; Remark 2 Seven cases of fluid type and motion law combinations: {circle around (3)}Newtonian fluid + high speed non-Darcy flow; {circle around (5)}Newtonian fluid + stress-sensitive percolation; {circle around (6)}non-Newionian fluid + Darcy flow; {circle around (7)}non-Newtonian fluid + laminar tube flow; {circle around (8)}non-Newtonian fluid + stress-sensitive percolation; {circle around (9)}non-Newtonian fluid + turbulent tube flow; {circle around (10)}Newtonian fluid + low speed non-Darcy flow (or Binghamnon-Newtonian fluid + Darcy flow). Remark 3 Ten cases of fluid type and motion law combinations: {circle around (1)}Newtonian fluid + Darcy flow; {circle around (2)}Newtonian fluid + laminar tube flow; {circle around (3)}Newtonian fluid + high speed non-Darcy flow; {circle around (4)} Newtonian fluid + turbulent tube flow; {circle around (5)} Newtonian fluid + stress-sensitive percolation; {circle around (6)}Non-Newtonian fluid + Darcy flow; {circle around (7)}Non-Newtonian fluid + laminar tube flow; {circle around (8)}Non-Newtonian fluid + stress-sensitive percolation; {circle around (9)}Non-Newtonian fluid + turbulent tube flow; {circle around (10)}Newtonian fluid + low speed non-Darcy flow (or Bingham Non-Newtonian fluid + Darcy flow). Remark 4 (1)“Published by others” are limited to the use of equivalent permeability and equivalent percolation coefficient (or converted percolation coefficient) in the above numerical simulation models, where the use of generalized mobility (or equivalent mobility) belongs to this invention; (2) This invention includes characteristic methods for tube flow (free flow) or percolation cases realized by the method of this invention; (3) The permanent downhole monitoring data analysis is mainly based on models of “transient well analysis” (pressure or temperature) or/and “transient rate production data analysis”. (4) This invention includes above models that can be applied for geothermal reservoirs. Remark 5 The reservoirs refer to a reservoir of oil, gas or water. Reservoirs contains tubes, porous media, fracture media, caves, or their combinations, connected combinations or overlapping.

(2) The software developed can be used for single and multi-well flow simulation of complex multi-component multi-component multi-phase flow reservoirs, multi-well interference analysis, deliverability analysis (i.e. steady well test analysis), transient pressure analysis (i.e. unsteady pressure well test analysis), transient rate analysis (i.e. production data analysis or rate decline analysis), transient temperature analysis (i.e. unsteady temperature analysis), well test design, and permanent downhole monitoring data analysis (including pressure, temperature, flow rate, and so on). The above complex multi-component multi-phase flow reservoirs refer to all types of reservoirs, reservoirs with fluid injection, underground gas storage, ground water reservoirs, geothermal reservoirs, etc.

Embodiment 1 is a general example that can be used to solve tube flow-percolation coupling problems and multi-phase flow problems for various complex reservoirs, embodiments 2 to 7 are simplified on the basis of embodiment 1 to reflect that the wellbore can be treated either as an inner boundary or as a reservoir, the specific solution methods of which can be solved according to the numerical methods given in embodiment 1. However, some embodiments are simple and can be solved by analytical methods. For example, embodiments 4 and 6 can be solved by Laplace integral transformation method and give analytical solutions in Laplace space. embodiments 8 to 12 are ones given where the generalized mobility is a constant and they have analytical solutions in Laplace space. embodiment 13 gives a situation where the generalized mobility is a non-constant. embodiment 14 is an example of multi-component condensate gas flow simulation analysis for complex reservoirs. Embodiment 15 is an example of multi-component carbon dioxide drive flow simulation analysis in complex reservoirs. Embodiment 16 is an example of multi-component polymer drive flow simulation analysis in complex reservoirs. Embodiment 17 is an example of multi-component three-phase flow simulation analysis considering non-isothermal process in complex reservoirs. Embodiment 18 is an example of transient temperature analysis of oil single-phase flow.

It should be noted that the generalized mobility is a constant (matrix) when only the fluid flow is Darcy flow or laminar tube flow. In general, the generalized mobility is a function of space position and time. In particular, the generalized mobility may be a function of variables such as fluid velocity, pressure gradient, and so on. If the generalized mobility can be expressed as the product of a constant matrix and a scalar function, the non-linear flow problem can be transformed into linear flow through defining pseudo-pressure and pseudo-time functions, which means to transform generalized mobility into a constant matrix; Otherwise, the problem cannot be transformed into a linear flow problem.

Let a function ƒ(t) be defined on [0,∞), then ƒ(t) is a real-valued function or a complex-valued function of a real variable t. The function

${\overset{\_}{f}(z)} = {\int\limits_{0}^{\infty}{{f(t)}e^{- {zt}}{dt}}}$

determined by the Laplace integral

$\int\limits_{0}^{\infty}{{f(t)}e^{- {zt}}{dt}}$

is called the Laplace transformation of the function ƒ(t). By applying the integral transformation above, the well testing models in embodiments 4, 6 and 8 to 12 can be transformed into homogeneous equation systems in Laplace space, which are used to obtain bottom hole pressure function solutions in Laplace space.

Let p _(wD)(z) be dimensionless bottom hole pressure solution function in Laplace space, then the real space dimensionless bottom hole pressure solution p_(wD)(t_(D)) can be obtained by Stehfest numerical inversion technique

${p_{wD}\left( t_{D} \right)} = {\frac{\log \; 2}{t_{D}}{\sum\limits_{k = 1}^{N}{\left( {\left( {- 1} \right)^{\frac{N}{2} + k}{\sum\limits_{n = {\lbrack{{({k + 1})}/2}\rbrack}}^{\min {({k,{N/2}})}}\frac{{n^{N/2}\left( {2n} \right)}!}{{\left( {{N/2} - n} \right)!}{n!}{\left( {n - 1} \right)!}{\left( {k - n} \right)!}{\left( {{2n} - k} \right)!}}}} \right){{\overset{\_}{p}}_{wD}\left( {k\frac{\log \; 2}{t_{D}}} \right)}}}}$

where N is an even number, generally the value is between 8 and 16.

Other numerical inversion techniques can also be used here in addition to Stehfest numerical inversion technology.

Embodiment of transient rate analysis (i.e., production data analysis) is shown in FIGS. 41 to 45. These figures are realized on the basis of a cylindrical reservoir model provided in embodiment 9 of this invention, which are vertical well Blasingame type curve, vertical well Agarwal-Gardner type curve, vertical well NPI type curve, and vertical well Transient type curve. Similarly, various kinds of analysis type curves of other analysis models can also be created. The basic principles of drawing type curves are detailed in the book “Modern production decline analysis methods for oil and gas wells and their application” written by Sun Hedong (2013).

For some layered reservoirs, the problem can be further simplified by defining the generalized flow coefficient or the equivalent transmissibility (Kh/μ) to facilitate the analysis and solution of some problems.

In addition, based on the above principle method, It can be similar to follow the traditional analytical model methods to establish the corresponding deliverability well test analysis, multi-well interference well test analysis, well test analysis method for wells in geothermal reservoirs and permanent downhole monitoring data analysis.

For example, with regard to the establishment of single-phase flow deliverability test analysis model method for steady-flow vertical wells in unsaturated layered reservoirs, the formula of production index is written as: follows:

$J = {\frac{q}{P_{e} - P_{wf}} - \frac{2{\pi\lambda h}}{B\left\lbrack {{\ln \left( {r_{e}/r_{w}} \right)} + S} \right\rbrack}}$

B—Volume factor of the fluid, m³/m³; h—Reservoir thickness, m; p_(e)-reservoir outer boundary pressure (average formation pressure of reservoir can be used in practical application), Pa; pwf-bottom hole flowing pressure, Pa; q—flow rate, m³/s; r_(e)-outer radius of reservoir, m; r_(w)-wellbor radius, m S-skin factor; λ-generalized mobility of the reservoir fluid, m²/Pa·s.

Embodiment 1

This embodiment provides a generalized oil/gas/water three-phase flow simulation analysis method for complex reservoirs. FIG. 3 is the physical model, which only denotes a special case of this embodiment.

Based on the mass conservation principle, the general equation of oil/gas/water three-phase flow can be established (Note: the volume factor is equal to the fluid density divided by the surface reference density and the surface reference density is a constant. Therefore, the two sides of the governing equation in the following examples can be converted into the fluid density by multiplying the surface reference density of each phase, respectively):

Oil phase governing equation considering source/sink term:

$\begin{matrix} {{{\nabla{\cdot \left\lbrack {\frac{1}{B_{o}}\lambda_{o}{\nabla p_{o}}} \right\rbrack}} = {{\frac{\partial}{\partial t}\left( {\frac{1}{B_{o}}{\varphi S}_{o}} \right)} + \frac{q_{o}}{\rho_{osc}}}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (1) \end{matrix}$

Water phase governing equation considering source/sink term:

$\begin{matrix} {{{\nabla{\cdot \left\lbrack {\frac{1}{B_{w}}\lambda_{w}{\nabla p_{w}}} \right\rbrack}} = {{\frac{\partial}{\partial t}\left( {\frac{1}{B_{w}}{\varphi S}_{w}} \right)} + \frac{q_{w}}{\rho_{osc}}}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (2) \end{matrix}$

Gas phase governing equation considering source/sink term:

$\begin{matrix} {{{{\nabla{\cdot \left\lbrack {\frac{1}{B_{g}}\lambda_{g}\nabla_{g}} \right\rbrack}} + {\nabla{\cdot \left\lbrack {\frac{R_{g}}{B_{o}}\lambda_{o}{\nabla p_{o}}} \right\rbrack}}} = {{\frac{\partial}{\partial t}\left( {{\frac{1}{B_{g}}\varphi},S_{g}} \right)} + \frac{q_{g}}{\rho_{gsc}} + {\frac{\partial}{\partial t}\left( {\frac{R_{s}}{B_{o}}{\varphi S}_{o}} \right)}}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (3) \end{matrix}$

Auxiliary equations with saturation and capillary pressure:

S _(o) +S _(w) +S _(g)=1,(x,t)∈Ω×(0,t _(max)]  (4)

p _(cow)(S _(w))=p _(o) −p _(w),(x,t)∈Ω×(0,t _(max)]  (5)

p _(cgo)(S _(w))=p _(g) −p _(o),(x,t)∈Ω×(0,t _(max)]  (6)

Boundary condition equations:

$\begin{matrix} {{\left( {{c_{o,1}p_{o}} + {c_{o,2}\lambda_{o}\frac{\partial p_{o}}{\partial n^{\partial\Omega}}}} \right) = {g_{o}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (7) \\ {{\left( {{c_{w,1}p_{w}} + {c_{w,2}\lambda_{w}\frac{\partial p_{w}}{\partial n^{\partial\Omega}}}} \right) = {g_{w}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (8) \\ {{\left( {{c_{g,1}p_{g}} + {c_{g,2}\lambda_{g}\frac{\partial p_{g}}{\partial n^{\partial\Omega}}}} \right) = {g_{g}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (9) \end{matrix}$

Initial condition equations:

S _(k)(x,0)=l _(k)(x),x∈Ω  (10)

p _(k)(x,0)=ƒ_(k)(x),x∈Ω  (11)

Where

S _(k) =S _(k)(x,t),k=o,w,g  (12)

p _(k) =p _(k)(x,t),k=o,w,g  (13)

q _(k) =q _(k)(x,t),k=o,w,g  (14)

λ_(k)=λ_(k)(x,t),k=o,w,g  (15)

ϕ is porosity, which is the function of average pressure p, %; B_(w), B_(o), B_(g) are volume factors of water/oil/gas, water volume factor is a function of water-phase pressure p_(w), oil volume factor is a function of oil-phase pressure p_(o) and bubble point pressure p_(b), gas volume factor is a function of gas-phase pressure p_(g), dimensionless; λ_(w), λ_(o), λ_(g) are generalized mobility for water/oil/gas, separately, m²/(Pa·s); ρ_(w), ρ_(o), ρ_(g) are densities of water/oil/gas, kg/m³; ρ_(o,o) is oil component density in oil-phase, kg/m³; ρ_(g,o) is gas component density in oil-phase, kg/m³; ρ_(wsc), ρ_(osc), ρ_(gsc) are surface reference densities of water/oil/gas, kg/m³; R_(s) is the dissolved gas-oil ratio, dimensionless; S_(w), S_(o), S_(g) are saturation of water/oil/gas; t is time, s; t_(max) is the total time, s; p_(w), p_(o), p_(g) are pressures of water/oil/gas, Pa; l_(w), l_(o), l_(g) are distribution functions of water/oil/gas initial saturation; q_(w), q_(o), q_(g) are source/sink terms of water/oil/gas, kg/(m³·s); ƒ_(w), ƒ_(o), ƒ_(g) are distribution functions of water/oil/gas initial pressure, Pa; g_(w), g_(o), g_(g) are boundary functions of water/oil/gas on reservoir boundary, dimensionless; p_(cow), p_(cgo) are capillary pressure of oil-water/gas-oil contact, Pa; Ω is reservoir space; ∂Ω is reservoir boundary including internal boundary and outer boundary; c_(w1), c_(o,1), c_(g,1) are pressure term coefficients of water/oil/gas on reservoir boundary, 1/Pa; c_(w,2), c_(o,2), c_(g,2) are respectively directional derivative coefficient of water, oil and gas along the normal direction outside the boundary on reservoir boundary condition, s/m; n^(∂Ω) is The direction of outer normal of reservoir boundary, m; ∇ is the Hamilton operator; ∂ is the partial derivative sign.

Problems can be optimized and discretely solved by applying the finite volume method. The following example of tetrahedral element is given to illustrate the process.

Firstly the region Ω is divided into a series of tetrahedrons Ω_(i), which do not overlap each other. The control point of tetrahedrons Ω_(i) is marked as x_(i) and the boundary of tetrahedrons Ω_(i) is marked as ∂Ω_(i). If the number of tetrahedrons that have a common surface with tetrahedrons Ω_(i) is 4, then x_(i) is called the internal control point, and the set of all internal control points is Ω_(I). If the number of tetrahedrons that have a common surface with tetrahedrons is less than Ω_(i) then x_(i) is called the boundary control point, and the set of all boundary control points is called Ω_(B).

Oil phase governing equation considering source/sink term is discretized as

$\begin{matrix} {{{\sum\limits_{\sigma \Subset {\partial\Omega_{\eta}}}{u_{o,i_{2}}a_{o,i_{2}}{p_{o}\left( {x_{i_{2}},t_{n + 1}} \right)}}} - {u_{o,i_{1}}a_{o,i_{1}}{p_{o}\left( {x_{i_{1}},i_{n + 1}} \right)}}} = {{e_{o,2}{S_{o}\left( {x_{i_{1}},i_{n + 1}} \right)}} - {e_{o,1}{S_{o}\left( {x_{i_{1}},t_{n}} \right)}} + {V_{i_{1}}\frac{q_{o}\left( {x_{i_{1}},t_{n + 1}} \right)}{\rho_{osc}}}}} & (16) \end{matrix}$

Where x_(i) ₁ ∈Ω_(I), x_(i) ₂ ∈Ω_(I) UΩ_(B), and

$\begin{matrix} {\mspace{79mu} {e_{o,1} = \frac{V_{i_{1}}{\varphi \left\lbrack {\overset{\_}{p}\left( {x_{i_{1}},t_{n}} \right)} \right\rbrack}}{{B_{o}\left\lbrack {{p_{o}\left( {x_{i_{1}},t_{n}} \right)},p_{b}} \right\rbrack}\left( {t_{n + 1} - t_{n}} \right)}}} & (17) \\ {\mspace{79mu} {e_{o,2} = \frac{V_{i_{1}}{\varphi \left\lbrack {\overset{\_}{p}\left( {x_{i_{1}},t_{n + 1}} \right)} \right\rbrack}}{{B_{o}\left\lbrack {{p_{o}\left( {x_{i_{1}},t_{n + 1}} \right)},p_{b}} \right\rbrack}\left( {t_{n + 1} - t_{n}} \right)}}} & (18) \\ {\mspace{79mu} {a_{o,i_{1}} = {S_{i_{1},\sigma}\left( {\alpha_{o,i_{1}} + \beta_{o,i_{1}} + \gamma_{o,i_{1}}} \right)}}} & (19) \\ {\mspace{79mu} {\alpha_{o,i_{2}} = {S_{i_{2},\sigma}\left( {\alpha_{o,i_{2}} + \beta_{o,i_{2}} + \gamma_{o,i_{2}}} \right)}}} & (20) \\ {b_{o,i_{1}} = {S_{i_{1},\sigma}\left\lbrack {{\alpha_{o,i_{1}}{p_{o}\left( {d_{j_{1}},t_{n + 1}} \right)}} + {\beta_{o,i_{1}}{p_{o}\left( {d_{j_{2}},t_{n + 1}} \right)}} + {\gamma_{o,i_{1}}{p_{o}\left( {d_{j_{4}},t_{n + 1}} \right)}}} \right\rbrack}} & (21) \\ {b_{o,i_{2}} = {S_{i_{2},\sigma}\left\lbrack {{\alpha_{o,i_{2}}{p_{o}\left( {d_{j_{2}},t_{n + 1}} \right)}} + {\beta_{o,i_{2}}{p_{o}\left( {d_{j_{3}},t_{n + 1}} \right)}} + {\gamma_{o,i_{2}}{p_{o}\left( {d_{j_{5}},t_{n + 1}} \right)}}} \right\rbrack}} & (22) \\ {\mspace{79mu} {u_{o,i_{1}} = \left\{ \begin{matrix} {{1/2},} & {{b_{o,i_{1}} + b_{o,i_{2}}} = 0} \\ {{b_{o,i_{2}}/\left( {b_{o,i_{1}} + b_{o,i_{2}}} \right)},} & {{b_{o,i_{1}} + b_{o,i_{2}}} \neq 0} \end{matrix} \right.}} & (23) \\ {\mspace{79mu} {u_{o,i_{2}} = \left\{ \begin{matrix} {{1/2},} & {{b_{o,i_{1}} + b_{o,i_{2}}} = 0} \\ {{b_{o,i_{1}}/\left( {b_{o,i_{1}} + b_{o,i_{2}}} \right)},} & {{b_{o,i_{1}} + b_{o,i_{2}}} \neq 0} \end{matrix} \right.}} & (24) \end{matrix}$

The vertex pressures in the formulas [(21) and (22)] above are treated by the inverse distance weighting method, i. e,

$\begin{matrix} {{{p_{o}\left( {d_{j},t_{n + 1}} \right)} = {\sum\limits_{i \in D_{j}}{\frac{\left. ||{d_{j} - x_{i}}||_{2}^{l} \right.}{\sum\limits_{i \in D_{j}}\left. ||{d_{j} - x_{i}}||_{2}^{l} \right.}{p_{o}\left( {x_{i},t_{n + 1}} \right)}}}},{j = j_{1}},j_{2},j_{3},j_{4},j_{5}} & (25) \end{matrix}$

D_(j) denotes the number set of all discrete control body central points from the vertex d_(j), l is a real number less than 0.

The coefficients α_(o,i) ₁ , β_(o,i) ₁ , γ_(o,i) ₁ in the formulas [(19) and (21) above are determined by the following formula

$\begin{matrix} {{\frac{{{\lambda_{o}}^{T}\left( {x_{i_{1}},t_{n + 1}} \right)}n_{i_{1},\sigma}}{B_{o}\left\lbrack {{p_{o}\left( {x_{i_{1}},t_{n + 1}} \right)},p_{b}} \right\rbrack} = {{\alpha_{o,i_{1}}\left( {d_{j_{1}} - x_{i_{1}}} \right)} + {\beta_{o,i_{1}}\left( {d_{j_{2}} - x_{i_{1}}} \right)} + {\gamma_{o,i_{1}}\left( {d_{j_{4}} - x_{i_{1}}} \right)}}},{x_{i_{1}} \in \Omega_{i}}} & (26) \end{matrix}$

As shown in FIG. 4, the subscripts of vertices coordinates j₁, j₂, j₄, are intersected by a ray in the direction of

$\frac{{{\lambda_{o}}^{T}\left( {x_{i_{1}},t_{n + 1}} \right)}n_{i_{1},\sigma}}{B_{o}\left\lbrack {{p_{o}\left( {x_{i_{1}},t_{n + 1}} \right)},p_{b}} \right\rbrack}$

through the starting point x_(i) ₁ with a sub-surface of the discrete control body Ω_(i) ₁ . The three vertices coordinates of the sub-surface are d_(j) ₁ , d_(j) ₂ , d_(j) ₄ , as shown in FIG. 4.

The coefficients α_(o,i) ₂ , β_(o,i) ₂ , γ_(o,i) ₂ in the formulas Eq,20 and Eq.22 above are determined by the following formula

$\begin{matrix} {\frac{{{\lambda_{o}}^{T}\left( {x_{i_{2}},t_{n + 1}} \right)}n_{i_{2},\sigma}}{B_{o}\left\lbrack {{p_{o}\left( {x_{i_{2}},t_{n + 1}} \right)},p_{b}} \right\rbrack} = {{\alpha_{o,i_{2}}\left( {d_{j_{2}} - x_{i_{2}}} \right)} + {\beta_{o,i_{2}}\left( {d_{j_{3}} - x_{i_{2}}} \right)} + {\gamma_{o,i_{2}}\left( {d_{j_{5}} - x_{i_{2}}} \right)}}} & (27) \end{matrix}$

The subscripts of vertices coordinates j₂, j₃, j₅ are intersected by a ray in the direction of

$\frac{{{\lambda_{o}}^{T}\left( {x_{i_{2}},t_{n + 1}} \right)}n_{i_{2},\sigma}}{B_{o}\left\lbrack {{p_{o}\left( {x_{i_{2}},t_{n + 1}} \right)},p_{b}} \right\rbrack}$

through the starting point x_(i) ₂ with a sub-surface of the discrete control body χ_(i) ₂ . The three vertices coordinates of the sub-surface are d_(j) ₂ , d_(j) ₃ , d_(j) ₅ , as shown in FIG. 4.

Water phase governing equation considering source/sink term is discretized as

$\begin{matrix} {{{\sum\limits_{\sigma \Subset {\partial\Omega_{\eta}}}{u_{w,i_{2}}a_{w,i_{2}}{p_{w}\left( {x_{i_{2}},t_{n + 1}} \right)}}} - {u_{w,i_{1}}a_{w,i_{1}}{p_{w}\left( {x_{i_{1}},t_{n + 1}} \right)}}} = {{e_{w,2}{S_{w}\left( {x_{i_{1}},t_{n + 1}} \right)}} - {e_{w,1}{S_{w}\left( {x_{i_{1}},t_{n}} \right)}} + {V_{i_{1}}\frac{q_{w}\left( {x_{i_{1}},t_{n + 1}} \right)}{\rho_{wsc}}}}} & (28) \end{matrix}$

Where x_(i) ₁ ∈Ω_(I),

$\begin{matrix} {\mspace{79mu} {e_{w,1} = \frac{V_{i_{1}}{\varphi \left\lbrack {\overset{\_}{p}\left( {x_{i_{1}},t_{n}} \right)} \right\rbrack}}{{B_{w}\left\lbrack {p_{w}\left( {x_{i_{1}},t_{n}} \right)} \right\rbrack}\left( {t_{n + 1} - t_{n}} \right)}}} & (29) \\ {\mspace{79mu} {e_{w,2} = \frac{V_{i_{1}}{\varphi \left\lbrack {\overset{\_}{p}\left( {x_{i_{1}},t_{n + 1}} \right)} \right\rbrack}}{{B_{w}\left\lbrack {p_{w}\left( {x_{i_{1}},t_{n + 1}} \right)} \right\rbrack}\left( {t_{n + 1} - t_{n}} \right)}}} & (30) \\ {\mspace{79mu} {a_{w,i_{1}} = {S_{i_{1},\sigma}\left( {\alpha_{w,i_{1}} + \beta_{w,i_{1}} + \gamma_{w,i_{1}}} \right)}}} & (31) \\ {\mspace{79mu} {\alpha_{w,i_{2}} = {S_{i_{2},\sigma}\left( {\alpha_{w,i_{2}} + \beta_{w,i_{2}} + \gamma_{w,i_{2}}} \right)}}} & (32) \\ {b_{w,i_{1}} = {S_{i_{1},\sigma}\left\lbrack {{\alpha_{w,i_{1}}{p_{w}\left( {d_{j_{1}},t_{n + 1}} \right)}} + {\beta_{w,i_{1}}{p_{w}\left( {d_{j_{2}},t_{n + 1}} \right)}} + {\gamma_{w,i_{1}}{p_{w}\left( {d_{j_{4}},t_{n + 1}} \right)}}} \right\rbrack}} & (33) \\ {b_{w,i_{2}} = {S_{i_{2},\sigma}\left\lbrack {{\alpha_{w,i_{2}}{p_{w}\left( {d_{j_{2}},t_{n + 1}} \right)}} + {\beta_{w,i_{2}}{p_{w}\left( {d_{j_{3}},t_{n + 1}} \right)}} + {\gamma_{w,i_{2}}{p_{w}\left( {d_{j_{5}},t_{n + 1}} \right)}}} \right\rbrack}} & (34) \\ {\mspace{79mu} {u_{w,i_{1}} = \left\{ \begin{matrix} {{1/2},} & {{b_{w,i_{1}} + b_{w,i_{2}}} = 0} \\ {{b_{w,i_{2}}/\left( {b_{w,i_{1}} + b_{w,i_{2}}} \right)},} & {{b_{w,i_{1}} + b_{w,i_{2}}} \neq 0} \end{matrix} \right.}} & (35) \\ {\mspace{79mu} {u_{w,i_{2}} = \left\{ \begin{matrix} {{1/2},} & {{b_{w,i_{1}} + b_{w,i_{2}}} = 0} \\ {{b_{o,i_{1}}/\left( {b_{w,i_{1}} + b_{w,i_{2}}} \right)},} & {{b_{w,i_{1}} + b_{w,i_{2}}} \neq 0} \end{matrix} \right.}} & (36) \end{matrix}$

The vertex pressures in the formulas Eq.37 and Eq.34 above are treated by the inverse distance weighting method, i. e,

$\begin{matrix} {{{p_{w}\left( {d_{j},t_{n + 1}} \right)} = {\sum\limits_{i \in D_{j}}{\frac{\left. ||{d_{j} - x_{i}}||_{2}^{l} \right.}{\sum\limits_{i \in D_{j}}\left. ||{d_{j} - x_{i}}||_{2}^{l} \right.}{p_{w}\left( {x_{i},t_{n + 1}} \right)}}}},{j = j_{1}},j_{2},j_{3},j_{4},j_{5}} & (37) \end{matrix}$

D_(j) denotes the number set of all discrete control body central points from the vertex d_(j), l is a real number less than 0.

The coefficients α_(w,i) ₁ , β_(w,i) ₁ , γ_(w,i) ₁ in the formulas [(31) and (33)] above are determined by the following formula

$\begin{matrix} {{\frac{{\lambda_{w}^{T}\left( {ϰ_{i_{1}},t_{n + 1}} \right)}n_{i_{1},\sigma}}{B_{w}\left\lbrack {p_{w}\left( {ϰ_{i_{1}},t_{n + 1}} \right)} \right\rbrack} = {{\alpha_{w,i_{1}}\left( {d_{j_{1}} - ϰ_{i_{1}}} \right)} + {\beta_{w,j_{1}}\left( {d_{j_{2}} - ϰ_{i_{1}}} \right)} + {\gamma_{w,j_{1}}\left( {d_{j_{4}} - ϰ_{i_{1}}} \right)}}},{ϰ_{i_{1}} \in \Omega_{I}}} & (38) \end{matrix}$

The subscripts of vertices coordinates j₁, j₂, j₄ are intersected by a ray in the direction of

$\frac{{\lambda_{w}^{T}\left( {ϰ_{i_{1}},t_{n + 1}} \right)}n_{i_{1},\sigma}}{B_{w}\left\lbrack {p_{w}\left( {ϰ_{i_{1}},t_{n + 1}} \right)} \right\rbrack}$

through the starting point x_(i) ₁ with a sub-surface of the discrete control body Ω_(i) ₁ . The three vertices coordinates of the sub-surface are d_(j) ₁ , d_(j) ₂ , d_(j) ₄ as shown in FIG. 5.

The coefficients α_(w,i) ₂ , β_(w,i) ₂ , γ_(w,i) ₂ , in the formulas [(32) and (34)] above are determined by the following formula

$\begin{matrix} {\frac{{\lambda_{w}^{T}\left( {ϰ_{i_{2}},t_{n + 1}} \right)}n_{i_{2},\sigma}}{B_{w}\left\lbrack {p_{w}\left( {ϰ_{i_{2}},t_{n + 1}} \right)} \right\rbrack} = {{\alpha_{w,i_{2}}\left( {d_{j_{2}} - ϰ_{i_{2}}} \right)} + {\beta_{w,j_{2}}\left( {d_{j_{3}} - ϰ_{i_{2}}} \right)} + {\gamma_{w,i_{2}}\left( {d_{j_{5}} - ϰ_{i_{2}}} \right)}}} & (39) \end{matrix}$

The subscripts of vertices coordinates j₂, j₃, j₅ are intersected by a ray in the direction of

$\frac{{\lambda_{w}^{T}\left( {ϰ_{i_{2}},t_{n + 1}} \right)}n_{i_{2},\sigma}}{B_{w}\left\lbrack {p_{w}\left( {ϰ_{i_{2}},t_{n + 1}} \right)} \right\rbrack}$

through the starting point x_(i) ₂ with a sub-surface of the discrete control body Ω_(i) ₂ . The three vertices coordinates of the sub-surface are d_(j) ₂ , d_(j) ₃ , d_(j) ₅ as shown in FIG. 5.

Gas phase governing equation considering source/sink term (Eq.3) is discretized as

$\begin{matrix} {{\sum\limits_{\sigma \Subset {\partial\Omega_{i_{1}}}}\; \begin{Bmatrix} {{u_{g,i_{2}}\left\lbrack {{a_{g,i_{2}}{p_{g}\left( {ϰ_{i_{2}},t_{n + 1}} \right)}} + {a_{o,i_{2}}^{\prime}{p_{o}\left( {ϰ_{i_{2}},t_{n + 1}} \right)}}} \right\rbrack} -} \\ {u_{g,i_{1}}\left\lbrack {{a_{g,i_{1}}{p_{g}\left( {ϰ_{i_{1}},t_{n + 1}} \right)}} + {a_{o,i_{1}}^{\prime}{p_{o}\left( {ϰ_{i_{1}},t_{n + 1}} \right)}}} \right\rbrack} \end{Bmatrix}} = {\quad{\left\lbrack \begin{matrix} {{e_{g,2}{S_{g}\left( ϰ_{t_{1},t_{n + 1}} \right)}} - {e_{g,1}{S_{g}\left( {ϰ_{t_{1}},t_{n}} \right)}} +} \\ {{e_{0,2}^{\prime}{S_{0}\left( {ϰ_{t_{1}},t_{n + 1}} \right)}} - {e_{0,1}^{\prime}{S_{0}\left( {ϰ_{t_{1}},t_{n}} \right)}}} \end{matrix} \right\rbrack + {V_{i_{1}}\frac{q_{g}\left( {ϰ_{i_{1}},t_{n + 1}} \right)}{\rho_{gsc}}}}}} & (40) \end{matrix}$

Where x_(i) ₁ ∈Ω_(I),

$\begin{matrix} {e_{g,1} = \frac{V_{i_{1}}{\varphi \left\lbrack {\overset{\_}{p}\left( {ϰ_{i_{1}},t_{n}} \right)} \right\rbrack}}{{B_{g}\left\lbrack {p_{g}\left( {ϰ_{i_{1}},t_{n}} \right)} \right\rbrack}\left( {t_{n + 1} - t_{n}} \right)}} & (41) \\ {e_{g,2} = \frac{V_{i_{1}}{\varphi \left\lbrack {\overset{\_}{p}\left( {ϰ_{i_{1}},t_{n + 1}} \right)} \right\rbrack}}{{B_{g}\left\lbrack {p_{g}\left( {ϰ_{i_{1}},t_{n + 1}} \right)} \right\rbrack}\left( {t_{n + 1} - t_{n}} \right)}} & (42) \\ {e_{o,1}^{\prime} = \frac{V_{i_{1}}{\varphi \left\lbrack {\overset{\_}{p}\left( {ϰ_{i_{1}},t_{n}} \right)} \right\rbrack}}{{B_{o}\left\lbrack {{p_{o}\left( {ϰ_{i_{1}},t_{n}} \right)},p_{b}} \right\rbrack}\left( {t_{n + 1} - t_{n}} \right)}} & (43) \\ {e_{o,2}^{\prime} = \frac{V_{i_{1}}{\varphi \left\lbrack {\overset{\_}{p}\left( {ϰ_{i_{1}},t_{n}} \right)} \right\rbrack}}{{B_{o}\left\lbrack {{p_{o}\left( {ϰ_{i_{1}},t_{n + 1}} \right)},p_{b}} \right\rbrack}\left( {t_{n + 1} - t_{n}} \right)}} & (44) \\ {a_{g,i_{1}} = {S_{i_{1},\sigma}\left( {\alpha_{g,i_{1}} + \beta_{g,i_{1}} + \gamma_{g,i_{1}}} \right)}} & (45) \\ {a_{g,i_{2}} = {S_{i_{2},\sigma}\left( {\alpha_{g,i_{2}} + \beta_{g,i_{2}} + \gamma_{g,i_{2}}} \right)}} & (46) \\ {a_{o,i_{1}}^{\prime} = {S_{i_{1},\sigma}\left( {\alpha_{o,i_{1}}^{\prime} + \beta_{o,i_{1}}^{\prime} + \gamma_{o,i_{1}}^{\prime}} \right)}} & (47) \\ {a_{o,i_{2}}^{\prime} = {S_{i_{2},\sigma}\left( {\alpha_{o,i_{2}}^{\prime} + \beta_{o,i_{2}}^{\prime} + \gamma_{o,i_{2}}^{\prime}} \right)}} & (48) \\ {b_{g,i_{1}} = {S_{i_{1},\sigma}\left\lbrack {{\alpha_{g,i_{1}}{p_{g}\left( {d_{j_{1}},t_{n + 1}} \right)}} + {\beta_{g,i_{1}}{p_{g}\left( {d_{j_{3}},t_{n + 1}} \right)}} + {\gamma_{g,i_{1}}{p_{g}\left( {d_{j_{1}},t_{n + 1}} \right)}}} \right\rbrack}} & (49) \\ {b_{g,i_{2}} = {S_{i_{2},\sigma}\left\lbrack {{\alpha_{g,i_{2}}{p_{g}\left( {d_{j_{2}},t_{n + 1}} \right)}} + {\beta_{g,i_{2}}{p_{g}\left( {d_{j_{3}},t_{n + 1}} \right)}} + {\gamma_{g,i_{2}}{p_{g}\left( {d_{j_{5}},t_{n + 1}} \right)}}} \right\rbrack}} & (50) \\ {b_{o,i_{1}}^{\prime} = {S_{i_{1},\sigma}\left\lbrack {{\alpha_{o,i_{1}}^{\prime}{p_{o}\left( {d_{j_{1}},t_{n + 1}} \right)}} + {\beta_{o,i_{1}}^{\prime}{p_{o}\left( {d_{j_{2}},t_{n + 1}} \right)}} + {\gamma_{o,i_{1}}^{\prime}{p_{o}\left( {d_{j_{4}},t_{n + 1}} \right)}}} \right\rbrack}} & (51) \\ {b_{o,i_{2}}^{\prime} = {S_{i_{2},\sigma}\left\lbrack {{\alpha_{o,i_{2}}^{\prime}{p_{o}\left( {d_{j_{2}},t_{n + 1}} \right)}} + {\beta_{o,i_{2}}^{\prime}{p_{o}\left( {d_{j_{3}},t_{n + 1}} \right)}} + {\gamma_{o,i_{2}}^{\prime}{p_{o}\left( {d_{j_{5}},t_{n + 1}} \right)}}} \right\rbrack}} & (52) \\ {u_{g,i_{1}} = \left\{ \begin{matrix} {{1/2},{{\left( {b_{g,i_{1}} + b_{o,i_{1}}^{\prime}} \right) + \left( {b_{g,i_{2}} + b_{o,i_{2}}^{\prime}} \right)} = 0}} \\ {{\left( {b_{g,i_{2}} + b_{o,i_{2}}^{\prime}} \right)/\left( {b_{g,i_{1}} + b_{o,i_{1}}^{\prime} + b_{g,i_{2}} + b_{o,i_{2}}^{\prime}} \right)},{{\left( {b_{g,i_{1}} + b_{o,i_{1}}^{\prime}} \right) + \left( {b_{g,i_{2}} + b_{o,i_{2}}^{\prime}} \right)} \neq 0}} \end{matrix} \right.} & (53) \\ {u_{g,i_{2}} = \left\{ \begin{matrix} {{1/2},{{\left( {b_{g,i_{1}} + b_{o,i_{1}}^{\prime}} \right) + \left( {b_{g,i_{2}} + b_{o,i_{2}}^{\prime}} \right)} = 0}} \\ {{\left( {b_{g,i_{1}} + b_{o,i_{1}}^{\prime}} \right)/\left( {b_{g,i_{1}} + b_{o,i_{1}}^{\prime} + b_{g,i_{2}} + b_{o,i_{2}}^{\prime}} \right)},{{\left( {b_{g,i_{1}} + b_{o,i_{1}}^{\prime}} \right) + \left( {b_{g,i_{2}} + b_{o,i_{2}}^{\prime}} \right)} \neq 0}} \end{matrix} \right.} & (54) \end{matrix}$

The vertex pressures in the formulas Eqs.49, 50, 51, 52 above are treated by the inverse distance weighting method, i.e,

$\begin{matrix} {{{p_{g}\left( {d_{j},t_{n + 1}} \right)} = {\sum\limits_{i \in D_{j}}^{\;}\; {\frac{{{d_{j} - ϰ_{i}}}_{2}^{l}}{\sum\limits_{i \in D_{j}}^{\;}{{d_{j} - ϰ_{i}}}_{2}^{l}}{p_{g}\left( {ϰ_{i},t_{n + 1}} \right)}}}},{j = j_{1}},j_{2},j_{3},j_{4},j_{5}} & (55) \end{matrix}$

D_(j) denotes the number set of all discrete control body central points from the vertex d_(j), l is a real number less than 0.

The coefficients α_(o,i) ₁ , β_(o,i) ₁ , γ_(o,i) ₁ , α_(o,i) ₁ ′, β_(o,i) ₁ ′, γ_(o,i) ₁ ′ in the formulas Eqs.45, 47, 49, 51 above are determined by the following formula

$\begin{matrix} {{\frac{{\lambda_{g}^{T}\left( {ϰ_{i_{1}},t_{n + 1}} \right)}n_{i_{1},\sigma}}{B_{g}\left\lbrack {p_{g}\left( {ϰ_{i_{1}},t_{n + 1}} \right)} \right\rbrack} = {{\alpha_{g,i_{1}}\left( {d_{j_{1}} - ϰ_{i_{1}}} \right)} + {\beta_{g.i_{1}}\left( {d_{j_{3}} - ϰ_{i_{1}}} \right)} + {\gamma_{g,i_{1}}\left( {d_{j_{4}} - ϰ_{i_{1}}} \right)}}},{ϰ_{i_{1}} \in \Omega_{I}}} & (56) \\ {{\frac{{R_{s}\left\lbrack {p_{o}\left( {ϰ_{i_{1}},t_{n + 1}} \right)} \right\rbrack}{\lambda_{o}^{T}\left( {ϰ_{i_{1}},t_{n + 1}} \right)}n_{i_{1},\sigma}}{B_{o}\left\lbrack {{p_{o}\left( {ϰ_{i_{1}},t_{n + 1}} \right)},p_{b}} \right\rbrack} = {{\alpha_{o,i_{1}}^{\prime}\left( {d_{j_{1}} - ϰ_{i_{1}}} \right)} + {\beta_{o,i_{1}}^{\prime}\left( {d_{j_{2}} - ϰ_{i_{1}}} \right)} + {\gamma_{o,i_{1}}^{\prime}\left( {d_{j_{4}} - ϰ_{i_{1}}} \right)}}},{ϰ_{i_{1}} \in \Omega_{I}}} & (57) \end{matrix}$

The subscripts of vertices coordinates j₁, j₃, j₄ are intersected by a ray in the direction of

$\frac{{\lambda_{g}^{T}\left( {ϰ_{i_{1}},t_{n + 1}} \right)}n_{i_{1},\sigma}}{B_{g}\left\lbrack {p_{g}\left( {ϰ_{i_{1}},t_{n + 1}} \right)} \right\rbrack}$

through the starting point x_(i) ₁ with a sub-surface of the discrete control body Ω_(i) ₁ . The three vertices coordinates of the sub-surface are d_(j) ₁ , d_(j) ₃ , d_(j) ₄ as shown in FIG. 6. The subscripts of vertices coordinates j₁, j₂, j₄ are intersected by a ray in the direction of

$\frac{{R_{s}\left\lbrack {p_{o}\left( {ϰ_{i_{1}},t_{n + 1}} \right)} \right\rbrack}{\lambda_{o}^{T}\left( {ϰ_{i_{1}},t_{n + 1}} \right)}n_{i_{1},\sigma}}{B_{o}\left\lbrack {{p_{o}\left( {ϰ_{i_{1}},t_{n + 1}} \right)},p_{b}} \right\rbrack}$

through the starting point x_(i) ₁ with a sub-surface of the discrete control body Ω_(i) ₁ . The three vertices coordinates of the sub-surface are d_(j) ₁ , d_(j) ₂ , d_(j) ₄ , as shown in FIG. 6.

The coefficients α_(o,i) ₂ , β_(o,i) ₂ , γ_(o,i) ₂ , α_(o,i) ₂ ′, β_(o,i) ₂ ′, γ_(o,i) ₂ ′, in the formulas [(46),(48),(50),(52)] above are determined by the following formula

$\begin{matrix} {\frac{{\lambda_{g}^{T}\left( {ϰ_{i_{2}},t_{n + 1}} \right)}n_{i_{2},\sigma}}{B_{g}\left\lbrack {p_{g}\left( {ϰ_{i_{2}},t_{n + 1}} \right)} \right\rbrack} = {{\alpha_{g,i_{2}}\left( {d_{j_{2}} - ϰ_{i_{2}}} \right)} + {\beta_{g.i_{2}}\left( {d_{j_{3}} - ϰ_{i_{2}}} \right)} + {\gamma_{g,i_{2}}\left( {d_{j_{5}} - ϰ_{i_{2}}} \right)}}} & (58) \\ {\frac{{R_{s}\left\lbrack {p_{o}\left( {ϰ_{i_{2}},t_{n + 1}} \right)} \right\rbrack}{\lambda_{o}^{T}\left( {ϰ_{i_{2}},t_{n + 1}} \right)}n_{i_{2},\sigma}}{B_{o}\left\lbrack {{p_{o}\left( {ϰ_{i_{2}},t_{n + 1}} \right)},p_{b}} \right\rbrack} = {{\alpha_{o,i_{2}}^{\prime}\left( {d_{j_{2}} - ϰ_{i_{2}}} \right)} + {\beta_{o,i_{1}}^{\prime}\left( {d_{j_{3}} - ϰ_{i_{2}}} \right)} + {\gamma_{o,i_{2}}^{\prime}\left( {d_{j_{5}} - ϰ_{i_{2}}} \right)}}} & (59) \end{matrix}$

The subscripts of vertices coordinates j₂, j₃, j₅, are intersected by a ray in the direction of

$\frac{{\lambda_{g}^{T}\left( {ϰ_{i_{2}},t_{n + 1}} \right)}n_{i_{2},\sigma}}{B_{g}\left\lbrack {p_{g}\left( {ϰ_{i_{2}},t_{n + 1}} \right)} \right\rbrack}$

through the starting point x_(i) ₂ with a sub-surface of the discrete control body Ω_(i) ₂ . The three vertices coordinates of the sub-surface are d_(j) ₂ , d_(j) ₃ , d_(j) ₅ , as shown in FIG. 6. The subscripts of vertices coordinates j₂, j₃, j₅ are intersected by a ray in the direction of

$\frac{{R_{s}\left\lbrack {p_{o}\left( {ϰ_{i_{2}},t_{n + 1}} \right)} \right\rbrack}{\lambda_{o}^{T}\left( {ϰ_{i_{2}},t_{n + 1}} \right)}n_{i_{2},\sigma}}{B_{o}\left\lbrack {{p_{o}\left( {ϰ_{i_{2}},t_{n + 1}} \right)},p_{b}} \right\rbrack}$

through the starting point x_(i) ₂ with a sub-surface of the discrete control body Ω_(i) ₂ . The three vertices coordinates of the sub-surface are d_(j) ₂ , d_(j) ₃ , d_(j) ₅ as shown in FIG. 6.

Auxiliary equations Eq.4, 5, 6 with saturation and capillary pressure are discretized as

S _(o)(x _(i) ₁ ,t _(n))+S _(w)(x _(t) ₁ ,t _(n))+S _(g)(x _(i) ₁ ,t _(n))=1,x _(i) ₁ ∈Ω_(I) UΩ _(B)  (60)

p _(cow)[S _(w)(x _(i) ₁ ,t _(n))]=p _(o)(x _(i) ₁ ,t _(n))−p _(w)(x _(i) ₁ ,t _(n)),x _(i) ₁ ∈Ω_(I) UΩ _(B)  (61)

p _(cgo)[S _(g)(x _(i) ₁ ,t _(n))=p _(g)(x _(i) ₁ ,t _(n))−p _(o)(x _(i) ₁ ,t _(n)),x _(i) ₁ ∈Ω_(I) UΩ _(B)  (62)

Oil phase boundary condition equation is discretized as

$\begin{matrix} {{{\left( {c_{o,1} - \alpha_{o,i_{1}}^{\partial\Omega} - \beta_{o,i_{1}}^{\partial\Omega} - \gamma_{o,i_{1}}^{\partial\Omega}} \right){p_{o}\left( {ϰ_{i_{1}},t_{n}} \right)}} + {\alpha_{o,i_{1}}^{\partial\Omega}{p_{o}\left( {d_{j_{1}},t_{n}} \right)}} + {\beta_{o,i_{1}}^{\partial\Omega}{p_{o}\left( {d_{j_{2}},t_{n}} \right)}} + {\gamma_{o,i_{1}}^{\partial\Omega}{p_{o}\left( {d_{j_{4}},t_{n}} \right)}}} = {g_{o}\left( {ϰ_{i_{1}},t_{n}} \right)}} & (63) \\ {\mspace{79mu} {{{p_{o}\left( {d_{j},t_{n + 1}} \right)} = {\sum\limits_{i \in D_{j}}^{\;}\; {\frac{{{d_{j} - ϰ_{i}}}_{2}^{l}}{\sum\limits_{i \in D_{j}}^{\;}{{d_{j} - ϰ_{i}}}_{2}^{l}}{p_{o}\left( {ϰ_{i},t_{n + 1}} \right)}}}},{j = j_{1}},j_{2},j_{4}}} & (64) \end{matrix}$

Where x_(i) ₁ ∈Ω_(B), D_(j) denotes the number set of all discrete control body central points from the vertex d_(j), l is a real number less than 0.

The coefficients α_(o,i) ₁ ^(∂Ω), β_(o,i) ₁ ^(∂Ω), γ_(o,i) ₁ ^(∂Ω) in the formulas above are determined by the formula below

c _(o,2)λ_(o) ^(T)(x _(i) ₁ ,t _(n))n _(i) ₁ _(,σ) ^(∂Ω)=α_(o,i) ₁ ^(∂Ω)(d _(j) ₁ −x _(i) ₁ )+β_(o,i) ₁ ^(∂Ω)(d _(j) ₂ −x _(i) ₁ )+γ_(o,i) ₁ ^(∂Ω)(d _(j) ₄ −x _(i) ₁ ),x _(i) ₁ ∈Ω_(B)  (65)

The subscripts of vertices coordinates j₁, j₂, j₄ are intersected by a ray in the direction of c_(o,2)λ_(o) ^(T)(x_(i) ₁ ,t_(n))n_(i) ₁ _(,σ) ^(∂Ω) and the starting point x_(i) ₁ with a sub-surface of the discrete control body Ω_(i) ₁ . The three vertices coordinates of the sub-surface are d_(j) ₁ , d_(j) ₂ , d_(j) ₄ as shown in FIG. 7. Water phase boundary condition equation Eq.8 is discretized as

$\begin{matrix} {{{\left( {c_{w,1} - \alpha_{w,i_{1}}^{\partial\Omega} - \beta_{w,i_{1}}^{\partial\Omega} - \gamma_{w,i_{1}}^{\partial\Omega}} \right){p_{w}\left( {ϰ_{i_{1}},t_{n}} \right)}} + {\alpha_{w,i_{1}}^{\partial\Omega}p_{w}\left( {d_{j_{1}},t_{n}} \right)} + {\beta_{w,i_{1}}^{\partial\Omega}{p_{w}\left( {d_{j_{2}},t_{n}} \right)}} + {\gamma_{w,i_{1}}^{\partial\Omega}{p_{w}\left( {d_{j_{3}},t_{n}} \right)}}} = {g_{w}\left( {ϰ_{i_{1}},t_{n}} \right)}} & (66) \\ {\; {{{p_{w}\left( {d_{j},t_{n + 1}} \right)} = {\sum\limits_{i \in D_{j}}^{\;}\; {\frac{{{d_{j} - ϰ_{i}}}_{2}^{l}}{\sum\limits_{i \in D_{j}}^{\;}{{d_{j} - ϰ_{i}}}_{2}^{l}}{p_{w}\left( {ϰ_{i},t_{n + 1}} \right)}}}},{j = j_{1}},j_{2},j_{3}}} & (67) \end{matrix}$

Where x_(i) ₁ ∈ΩB, D_(j) denotes the number set of all discrete control body central points from the vertex d_(j), l is areal numberless than 0.

The coefficients α_(w,i) ₁ ^(∂Ω), β_(w,i) ₁ ^(∂Ω), γ_(w,i) ₁ ^(∂Ω) in the formula Eq.66 above are determined by the formula below

c _(w,2)λ_(w) ^(T)(x _(i) ₁ ,t _(n))n _(i) ₁ _(,σ) ^(∂Ω)=α_(w,i) ₁ ^(∂Ω)(d _(j) ₁ −x _(i) ₁ )+β_(w,i) ₁ ^(∂Ω)(d _(j) ₂ −x _(i) ₁ )+γ_(w,i) ₁ ^(∂Ω)(d _(j) ₃ −x _(i) ₁ ),x _(i) ₁ ∈Ω_(B)  (68)

The subscripts of vertices coordinates j₁, j₂, j₃ are intersected by a ray in the direction of c_(w,2)λ_(w) ^(T)(x_(i) ₁ ,t_(n))n_(i) ₁ _(,σ) ^(∂Ω) through the starting point x_(i) ₁ with a sub-surface of the discrete control body Ω_(i) ₁ . The three vertices coordinates of the sub-surface are d_(j) ₁ , d_(j) ₂ , d_(j) ₃ as shown in FIG. 8.

Gas phase boundary condition equation is discretized as

$\begin{matrix} {{{\left( {c_{g,1} - \alpha_{g,i_{1}}^{\partial\Omega} - \beta_{g,i_{1}}^{\partial\Omega} - \gamma_{g,i_{1}}^{\partial\Omega}} \right){P_{g}\left( {x_{i_{1}},t_{n}} \right)}} + {\alpha_{g,i_{1}}^{\partial\Omega}{P_{g}\left( {d_{j_{1}},t_{n}} \right)}} + {\beta_{g,i_{1}}^{\partial\Omega}{P_{g}\left( {d_{j_{2}},t_{n}} \right)}} + {\gamma_{g,i_{1}}^{\partial\Omega}{P_{g}\left( {d_{j_{4}},t_{n}} \right)}}} = {g_{g}\left( {x_{i_{1}},t_{n}} \right)}} & (69) \\ {\mspace{76mu} {{{P_{g}\left( {d_{j},t_{n + 1}} \right)} = {\sum\limits_{i \in D_{j}}{\frac{\left. ||{d_{j} - x_{i}}||_{2}^{l} \right.}{\sum\limits_{i \in D_{j}}\left. ||{d_{j} - x_{i}}||_{2}^{l} \right.}{P_{g}\left( {x_{i},t_{n + 1}} \right)}}}},{j = j_{1}},j_{2},j_{4}}} & (70) \end{matrix}$

Where x_(i) ₁ ∈Ω_(B), D_(j) denotes the number set of all discrete control body central points from the vertex d_(j), l is a real number less than 0.

The coefficients α_(g,i) ₁ ^(∂Ω), β_(g,i) ₁ ^(∂Ω), γ_(g,i) ₁ ^(∂Ω) in the formula Eq.69 above are determined by the formula below

c _(g,2)λ_(g) ^(T)(x _(i) ₁ ,t _(n))n _(i) ₁ _(,σ) ^(∂Ω)=α_(g,i) ₁ ^(∂Ω)(d _(j) ₁ −x _(i) ₁ )+β_(g,i) ₁ ^(∂Ω)(d _(j) ₂ −x _(i) ₁ )+γ_(g,i) ₁ ^(∂Ω)(d _(j) ₄ −x _(i) ₁ ),x _(i) ₁ ∈Ω_(B)  (71)

The subscripts of vertices coordinates j₁, j₂, j₄ are intersected by a ray in the direction of c_(g,2)λ_(g) ^(T)(x_(i) ₁ ,t_(n))n_(i) ₁ _(,σ) ^(∂Ω) through the starting point x_(i) ₁ with a sub-surface of the discrete control body Ω_(i) ₁ . The three vertices coordinates of the sub-surface are d_(j) ₁ , d_(j) ₂ , d_(j) ₄ as shown in FIG. 9.

Initial condition equations Eqs.10 and 11 are discretized as

S _(o)(x _(i) ₁ ,0)=l _(o)(x _(i) ₁ ),x _(i) ₁ ∈Ω_(I) UΩ _(B)  (72)

p _(o)(x _(i) ₁ ,0)=ƒ_(o)(x _(i) ₁ ),x _(i) ₁ ∈Ω_(I) UΩ _(B)  (73)

S _(w)(x _(i) ₁ ,0)=l _(w)(x _(i) ₁ ),x _(i) ₁ ∈Ω_(I) UΩ _(B)  (74)

p _(w)(x _(i) ₁ ,0)=ƒ_(w)(x _(i) ₁ ),x _(i) ₁ ∈Ω_(I) UΩ _(B)  (75)

S _(g)(x _(i) ₁ ,0)=l _(g)(x _(i) ₁ ),x _(i) ₁ ∈Ω_(I) UΩ _(B)  (76)

p _(g)(x _(i) ₁ ,0)=ƒ_(g)(x _(i) ₁ ),x _(i) ₁ ∈Ω_(I) UΩ _(B)  (77)

Based on the above discrete control equations of oil, gas and water phase and the discrete boundary condition equations of oil, gas and water phase Eqs.16, 28, 40, 63, 66, 69, the following discrete equations are obtained

$\begin{matrix} \left\{ \begin{matrix} \left\{ \begin{matrix} {{{{\sum\limits_{\sigma \Subset {\partial\Omega_{i_{1}}}}{u_{w,i_{2}}a_{w,i_{2}}{P_{w}\left( {x_{i_{2}},t_{n + 1}} \right)}}} - {u_{w,i_{1}}a_{w,i_{1}}{P_{w}\left( {x_{i_{1}},t_{n + 1}} \right)}}} = {{e_{w,2}{S_{w}\left( {x_{i_{1}},t_{n + 1}} \right)}} - {e_{w,1}{S_{w}\left( {x_{i_{1}},t_{n}} \right)}} + {V_{i_{1}}\frac{q_{w}\left( {x_{i_{1}},t_{n + 1}} \right)}{\rho_{wsc}}}}},{x_{i_{1}} \in \Omega_{I}}} \\ {{{{\left( {c_{o,1} - \alpha_{o,i_{1}}^{\partial\Omega} - \beta_{o,i_{1}}^{\partial\Omega} - \gamma_{o,i_{1}}^{\partial\Omega}} \right){P_{o}\left( {x_{i_{1}},t_{n}} \right)}} + {\alpha_{o,i_{1}}^{\partial\Omega}{P_{o}\left( {d_{j_{1}},t_{n}} \right)}} + {\beta_{o,i_{1}}^{\partial\Omega}{P_{o}\left( {d_{j_{2}},t_{n}} \right)}} + {\gamma_{o,i_{1}}^{\partial\Omega}{P_{o}\left( {d_{j_{4}},t_{n}} \right)}}} = {g_{o}\left( {x_{i_{1}},t_{n}} \right)}},{x_{i_{1}} \in \Omega_{B}}} \end{matrix} \right. \\ \left\{ \begin{matrix} {{{{\sum\limits_{\sigma \Subset {\partial\Omega_{i_{1}}}}{u_{w,i_{2}}a_{w,i_{2}}{P_{w}\left( {x_{i_{2}},t_{n + 1}} \right)}}} - {u_{w,i_{1}}a_{w,i_{1}}{P_{w}\left( {x_{i_{1}},t_{n + 1}} \right)}}} = {{e_{w,2}{S_{w}\left( {x_{i_{1}},t_{n + 1}} \right)}} - {e_{w,1}{S_{w}\left( {x_{i_{1}},t_{n}} \right)}} + {V_{i_{1}}\frac{q_{w}\left( {x_{i_{1}},t_{n + 1}} \right)}{\rho_{wsc}}}}},{x_{i_{1}} \in \Omega_{l}}} \\ {{{{\left( {c_{w,1} - \alpha_{w,i_{1}}^{\partial\Omega} - \beta_{w,i_{1}}^{\partial\Omega} - \gamma_{w,i_{1}}^{\partial\Omega}} \right){P_{w}\left( {x_{i_{1}},t_{n}} \right)}} + {\alpha_{w,i_{1}}^{\partial\Omega}{P_{w}\left( {d_{j_{1}},t_{n}} \right)}} + {\beta_{w,i_{1}}^{\partial\Omega}{P_{w}\left( {d_{j_{2}},t_{n}} \right)}} + {\gamma_{w,i_{1}}^{\partial\Omega}{P_{w}\left( {d_{j_{4}},t_{n}} \right)}}} = {g_{w}\left( {x_{i_{1}},t_{n}} \right)}},{x_{i_{1}} \in \Omega_{B}}} \end{matrix} \right. \\ \left\{ \begin{matrix} {{{\sum\limits_{\sigma \Subset {\partial\Omega_{i_{1}}}}\begin{Bmatrix} {{u_{g,i_{2}}\left\lbrack {{a_{g,i_{2}}{P_{g}\left( {x_{i_{2}},t_{n + 1}} \right)}} + {a_{o,i_{2}}{P_{o}\left( {x_{i_{2}},t_{n + 1}} \right)}}} \right\rbrack} -} \\ {u_{g,i_{1}}\left\lbrack {{a_{g,i_{1}}{P_{g}\left( {x_{i_{1}},t_{n + 1}} \right)}} + {a_{o,i_{1}}{P_{o}\left( {x_{i_{1}},t_{n + 1}} \right)}}} \right\rbrack} \end{Bmatrix}} = {\begin{bmatrix} {{e_{g,2}{S_{g}\left( x_{i_{1},t_{n + 1}} \right)}} - {e_{g,1}{S_{g}\left( {x_{i_{1}},t_{n}} \right)}} +} \\ {{e_{o,2}{S_{o}\left( x_{i_{1},t_{n + 1}} \right)}} - {e_{o,1}{S_{o}\left( {x_{i_{1}},t_{n}} \right)}}} \end{bmatrix} + {V_{i_{1}}\frac{q_{g}\left( {x_{i_{1}},t_{n + 1}} \right)}{\rho_{gsc}}}}},{x_{i_{1}} \in \Omega_{f}}} \\ {{{{\left( {c_{g,1} - \alpha_{g,i_{1}}^{\partial\Omega} - \beta_{g,i_{1}}^{\partial\Omega} - \gamma_{g,i_{1}}^{\partial\Omega}} \right){P_{g}\left( {x_{i_{1}},t_{n}} \right)}} + {\alpha_{g,i_{1}}^{\partial\Omega}{P_{g}\left( {d_{j_{1}},t_{n}} \right)}} + {\beta_{g,i_{1}}^{\partial\Omega}{P_{g}\left( {d_{j_{2}},t_{n}} \right)}} + {\gamma_{g,i_{1}}^{\partial\Omega}{P_{g}\left( {d_{j_{4}},t_{n}} \right)}}} = {g_{g}\left( {x_{i_{1}},t_{n}} \right)}},{x_{i_{1}} \in \Omega_{B}}} \end{matrix} \right. \\ {{{{S_{o}\left( {x_{i_{1}},t_{n}} \right)} + {S_{w}\left( {x_{i_{1}},t_{n}} \right)} + {S_{g}\left( {x_{i_{1}},t_{n}} \right)}} = 1},{x_{i_{1}} \in {\Omega_{I}{U\Omega}_{B}}}} \\ {{{P_{cow}\left\lbrack {S_{w}\left( {x_{i_{1}},t_{n}} \right)} \right\rbrack} = {{P_{o}\left( {x_{i_{1}},t_{n}} \right)} - {P_{w}\left( {x_{i_{1}},t_{n}} \right)}}},{x_{i_{1}} \in {\Omega_{I}{U\Omega}_{B}}}} \\ {{{P_{cgo}\left\lbrack {S_{g}\left( {x_{i_{1}},t_{n}} \right)} \right\rbrack} = {{P_{g}\left( {x_{i_{1}},t_{n}} \right)} - {P_{o}\left( {x_{i_{1}},t_{n}} \right)}}},{x_{i_{1}} \in {\Omega_{I}{U\Omega}_{B}}}} \end{matrix} \right. & (78) \end{matrix}$

There are six unknowns p_(o), p_(w), p_(g), S_(o), S_(w), S_(g) to be found at any control point x_(i) ₁ (x_(i) ₁ ∈Ω_(I)UΩ_(B)) in separating domain, and six equations are given by Eq.78 at any control point x_(i) ₁ . Therefore, the equations system is complete. The equations can be solved by the Newton-raphson algorithm, which can further be applied to describe the pressure and saturation distribution of oil, gas and water at any time point in the solved region.

Embodiment 2

This embodiment provides oil/gas/water three-phase flow simulation method through treating the wellbore as inner boundary for a partially open vertical well in a homogeneous reservoir. The physical model is shown in FIG. 10.

The general equation of oil/gas/water three-phase flow can be established by applying the mass conservation principle:

Oil phase governing equation:

$\begin{matrix} {{{\nabla{\cdot \left\lbrack {\frac{1}{B_{o}}\lambda_{o}{\nabla p_{o}}} \right\rbrack}} = {\frac{\partial}{\partial t}\left( {\frac{1}{B_{o}}{\varphi S}_{o}} \right)}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (79) \end{matrix}$

Water phase governing equation:

$\begin{matrix} {{{\nabla{\cdot \left\lbrack {\frac{1}{B_{w}}\lambda_{w}{\nabla p_{w}}} \right\rbrack}} = {\frac{\partial}{\partial t}\left( {\frac{1}{B_{w}}{\varphi S}_{w}} \right)}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (80) \end{matrix}$

Gas phase governing equation:

$\begin{matrix} {{{{\nabla{\cdot \left\lbrack {\frac{1}{B_{g}}\lambda_{g}{\nabla p_{g}}} \right\rbrack}} + {\nabla{\cdot \left\lbrack {\frac{R_{s}}{B_{o}}\lambda_{o}{\nabla p_{o}}} \right\rbrack}}} = {{\frac{\partial}{\partial t}\left( {\frac{1}{B_{g}}{\varphi S}_{g}} \right)} + {\frac{\partial}{\partial t}\left( {\frac{R_{s}}{B_{o}}{\varphi S}_{o}} \right)}}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (81) \end{matrix}$

Auxiliary equations with saturation and capillary pressure:

S _(o) +S _(w) +S _(g)=1,(x,t)∈Ω×(0,t _(max)]  (82)

p _(cow)(S _(w))=p _(o) −p _(w)(x,t)∈Ω×(0,t _(max)]  (83)

p _(cgo)(S _(g))=p _(g) −p _(o)(x,t)∈Ω×(0,t _(max)]  (84)

Boundary condition equations:

$\begin{matrix} {{\left( {{c_{o,1}p_{o}} + {c_{o,2}\lambda_{o}\frac{\partial p_{o}}{\partial n^{\partial\Omega}}}} \right) = {g_{o}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (85) \\ {{\left( {{c_{w,1}p_{w}} + {c_{w,2}\lambda_{w}\frac{\partial p_{w}}{\partial n^{\partial\Omega}}}} \right) = {g_{w}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (86) \\ {{\left( {{c_{g,1}p_{g}} + {c_{g,2}\lambda_{g}\frac{\partial p_{g}}{\partial n^{\partial\Omega}}}} \right) = {g_{g}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (87) \end{matrix}$

Initial condition equations:

S _(k)(x,0)=l _(k)(x),x∈Ω  (88)

p _(k)(x,0)=ƒ_(k)(x),x∈Ω  (89)

Where

$\begin{matrix} {\mspace{79mu} {{S_{k} = {S_{k}\left( {x,t} \right)}},{k = o},w,g}} & (90) \\ {\mspace{79mu} {{p_{k} = {p_{k}\left( {x,t} \right)}},{k = o},w,g}} & (91) \\ {\mspace{79mu} {{q_{k} = {q_{k}(t)}},{k = o},w,g}} & (92) \\ {{\lambda_{k} = \begin{bmatrix} {K_{x}\frac{K_{\Gamma k}}{\mu_{k}}} & 0 & 0 \\ 0 & {K_{y}\frac{K_{\Gamma k}}{\mu_{k}}} & 0 \\ 0 & 0 & {K_{z}\frac{K_{\Gamma k}}{\mu_{k}}\left( {1 - {\rho_{k}g\frac{\partial z}{\partial p}}} \right)} \end{bmatrix}},{k = o},w,{g;{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}}} & (93) \\ {\mspace{79mu} {{c_{k,1} = 0},{k = o},w,{g;{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}}}} & (94) \\ {\mspace{79mu} {c_{k,2} = \left\{ {\begin{matrix} {{{- 2}{\pi r}_{w}h},} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {1,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix},{k = o},w,g} \right.}} & (95) \\ {\mspace{79mu} {{g_{k}\left( {x,t} \right)} = \left\{ {\begin{matrix} {{q_{k}(t)},} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {0,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix},{k = o},w,g} \right.}} & (96) \\ {\mspace{79mu} {{\partial\Omega} = {\Gamma_{1}{U\Gamma}_{2}}}} & (97) \\ {\mspace{79mu} {\Gamma_{1} = \left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{w}^{2}},{h_{1} \leq z \leq h_{2}}} \right\}}} & (98) \\ {\Gamma_{2} = {\left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{w}^{2}},{0 \leq z < h_{1}},{h_{2} < z \leq H}} \right\} U\left\{ {\left. \left( {x,y,z} \right) \middle| {{x^{2} + y^{2}} < r_{w}^{2}} \right.,{z = {h_{1}\mspace{14mu} {or}\mspace{14mu} h_{2}}}} \right\} U\left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{e}^{2}},{0 \leq z \leq H}} \right\} U\left\{ {\left. \left( {x,y,z} \right) \middle| {r_{w}^{2} < {x^{2} + y^{2}} < r_{e}^{2}} \right.,{z = {0\mspace{14mu} {or}\mspace{14mu} H}}} \right\}}} & (99) \end{matrix}$

Embodiment 3

The embodiment provides oil/gas/water three-phase flow simulation method through treating the wellbore as reservoir for a partially open vertical well in a homogeneous reservoir. The physical model is shown in FIG. 11.

The general equation of oil/gas/water three-phase flow can be established by applying the mass conservation principle:

Oil phase governing equation:

$\begin{matrix} {{{\nabla{\cdot \left\lbrack {\frac{1}{B_{o}}\lambda_{o}{\nabla p_{o}}} \right\rbrack}} = {\frac{\partial}{\partial t}\left( {\frac{1}{B_{o}}{\varphi S}_{o}} \right)}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (100) \end{matrix}$

Water phase governing equation:

$\begin{matrix} {{{\nabla{\cdot \left\lbrack {\frac{1}{B_{w}}\lambda_{w}{\nabla p_{w}}} \right\rbrack}} = {\frac{\partial}{\partial t}\left( {\frac{1}{B_{w}}{\varphi S}_{w}} \right)}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (101) \end{matrix}$

Gas phase governing equation:

$\begin{matrix} {{{{\nabla{\cdot \left\lbrack {\frac{1}{B_{g}}\lambda_{g}{\nabla p_{g}}} \right\rbrack}} + {\nabla{\cdot \left\lbrack {\frac{R_{s}}{B_{o}}\lambda_{o}{\nabla p_{o}}} \right\rbrack}}} = {{\frac{\partial}{\partial t}\left( {\frac{1}{B_{g}}{\varphi S}_{g}} \right)} + {\frac{\partial}{\partial t}\left( {\frac{R_{s}}{B_{o}}{\varphi S}_{o}} \right)}}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (102) \end{matrix}$

Auxiliary equations with saturation and capillary pressure:

S _(o) +S _(w) +S _(g)=1,(x,t)∈Ω×(0,t _(max))  (103)

p _(cow)(S _(w))=p _(o) −p _(w)(x,t)∈Ω×(0,t _(max))  (104)

p _(cgo)(S _(g))=p _(g)-p _(o),(x,t)∈Ω×(0,t _(max)]  (105)

Boundary condition equations:

$\begin{matrix} {{\left( {{c_{o,1}p_{o}} + {c_{o,2}\lambda_{o}\frac{\partial p_{o}}{\partial n^{\partial\Omega}}}} \right) = {g_{o}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (106) \\ {{\left( {{c_{w,1}p_{w}} + {c_{w,2}\lambda_{w}\frac{\partial p_{w}}{\partial n^{\partial\Omega}}}} \right) = {g_{w}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (107) \\ {{\left( {{c_{g,1}p_{g}} + {c_{g,2}\lambda_{g}\frac{\partial p_{g}}{\partial n^{\partial\Omega}}}} \right) = {g_{g}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (108) \end{matrix}$

Initial condition equations:

S _(k)(x,0)=l _(k)(x),x∈Ω  (109)

p _(k)(x,0)=ƒ_(k)(x),x∈Ω  (110)

Where

$\begin{matrix} {\mspace{79mu} {{S_{k} = {S_{k}\left( {x,t} \right)}},{k = o},w,g}} & (111) \\ {\mspace{79mu} {{p_{k} = {p_{k}\left( {x,t} \right)}},{k = o},w,g}} & (112) \\ {\mspace{85mu} {{q_{k} = {q_{k}(t)}},{k = o},w,g}} & (113) \\ {\lambda_{k} = \left\{ {\begin{matrix} {\begin{bmatrix} {K_{x_{1}}\frac{K_{\Gamma k}}{\mu_{k}}} & 0 & 0 \\ 0 & {K_{y_{1}}\frac{K_{\Gamma k}}{\mu_{k}}} & 0 \\ 0 & 0 & {K_{z_{1}}\frac{K_{\Gamma k}}{\mu_{k}}\left( {1 - {\rho_{k}g\frac{\partial z}{\partial p}}} \right)} \end{bmatrix},{\left( {x,t} \right) \in {\Omega_{1} \times \left( {0,t_{\max}} \right\rbrack}}} \\ {\begin{bmatrix} {K_{x_{2}}\frac{K_{\Gamma k}}{\mu_{k}}} & 0 & 0 \\ 0 & {K_{y_{2}}\frac{K_{\Gamma k}}{\mu_{k}}} & 0 \\ 0 & 0 & {K_{z_{2}}\frac{K_{\Gamma k}}{\mu_{k}}\left( {1 - {\rho_{k}g\frac{\partial z}{\partial p}}} \right)} \end{bmatrix},{\left( {x,t} \right) \in {\Omega_{2} \times \left( {0,t_{\max}} \right\rbrack}}} \end{matrix},{k = o},w,g} \right.} & (114) \\ {\mspace{79mu} {{c_{k,1} = 0},{k = o},w,{g;{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}}}} & (115) \\ {\mspace{79mu} {c_{k,2} = \left\{ {\begin{matrix} {{{- {\pi r}_{w}}h},} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {1,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix},{k = o},w,g} \right.}} & (116) \\ {\mspace{85mu} {{g_{k}\left( {x,t} \right)} = \left\{ {\begin{matrix} {{q_{k}(t)},} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {0,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix},{k = o},w,g} \right.}} & (117) \\ {\mspace{79mu} {\Omega = {\Omega_{1}{U\Omega}_{2}}}} & (118) \\ {\mspace{85mu} {\Omega_{1} = \left\{ {\left. \left( {x,y,z} \right) \middle| {{x^{2} + y^{2}} \leq r_{w}^{2}} \right.,{0 < z < h_{2}}} \right\}}} & (119) \\ {\mspace{79mu} {\Omega_{2} = \left\{ {\left. \left( {x,y,z} \right) \middle| {r_{w}^{2} < {x^{2} + y^{2}} < r_{e}^{2}} \right.,{H_{1} < z < H}} \right\}}} & (120) \\ {\mspace{79mu} {{\partial\Omega} = {\Gamma_{1}{U\Gamma}_{2}}}} & (121) \\ {\mspace{79mu} {\Gamma_{1} = \left\{ {\left. \left( {x,y,z} \right) \middle| {{x^{2} + y^{2}} \leq r_{w}^{2}} \right.,{z = 0}} \right\}}} & (122) \\ {\Gamma_{2} = {\left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{w}^{2}},{0 < z < h_{1}},{h_{2} < z \leq H}} \right\} U\left\{ {\left. \left( {x,y,z} \right) \middle| {{x^{2} + y^{2}} \leq r_{w}^{2}} \right.,{z = h_{1}}} \right\} U\left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{e}^{2}},{H_{1} \leq z \leq H}} \right\} U\left\{ {\left. \left( {x,y,z} \right) \middle| {r_{w}^{2} < {x^{2} + y^{2}} < r_{e}^{2}} \right.,{z = {H_{1}\mspace{14mu} {or}\mspace{14mu} H}}} \right\}}} & (123) \end{matrix}$

Embodiment 4

This embodiment provides oil phase flow simulation method through treating the wellbore as inner boundary for a partially open vertical well in a homogeneous reservoir. The physical model is shown in FIG. 12.

The general equation of oil phase flow can be established by applying the mass conservation principle:

Oil phase governing equation:

$\begin{matrix} {{{\nabla{\cdot \left\lbrack {\frac{1}{B_{o}}\lambda_{o}{\nabla p_{o}}} \right\rbrack}} = {\frac{\partial}{\partial t}\left( {\frac{1}{B_{o}}{\varphi S}_{o}} \right)}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (124) \end{matrix}$

Boundary condition equation:

$\begin{matrix} {{\left( {{c_{o,1}p_{o}} + {c_{o,2}\lambda_{o}\frac{\partial p_{o}}{\partial n^{\partial\Omega}}}} \right) = {g_{o}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (125) \end{matrix}$

Initial condition equation:

p _(o)(x,0)=ƒ_(o)(x),x∈Ω  (126)

Where

$\begin{matrix} {\mspace{79mu} {p_{o} = {p_{o}\left( {x,t} \right)}}} & (127) \\ {\mspace{79mu} {q_{o} = {q_{o}(t)}}} & (128) \\ {\mspace{79mu} {{\lambda_{o} = {\frac{1}{\mu}\begin{bmatrix} K_{\Gamma} & 0 & 0 \\ 0 & K_{\Gamma} & 0 \\ 0 & 0 & K_{z} \end{bmatrix}}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}}} & (129) \\ {\mspace{79mu} {{c_{o,1} = 0},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}}} & (130) \\ {\mspace{79mu} {c_{o,2} = \left\{ \begin{matrix} {{{- 2}{\pi r}_{w}h},} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {1,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix} \right.}} & (131) \\ {\mspace{85mu} {{g_{o}\left( {x,t} \right)} = \left\{ \begin{matrix} {q_{o},} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {0,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix} \right.}} & (132) \\ {\mspace{85mu} {{\partial\Omega} = {\Gamma_{1}{U\Gamma}_{2}}}} & (133) \\ {\mspace{79mu} {\Gamma_{1} = \left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{w}^{2}},{h_{1} \leq z \leq h_{2}}} \right\}}} & (134) \\ {\Gamma_{2} = {\left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{w}^{2}},{0 \leq z < h_{1}},{h_{2} < z \leq H}} \right\} U\left\{ {\left. \left( {x,y,z} \right) \middle| {{x^{2} + y^{2}} < r_{w}^{2}} \right.,{z = {h_{1}\mspace{14mu} {or}\mspace{14mu} h_{2}}}} \right\} U\left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{e}^{2}},{0 \leq z \leq H}} \right\} U\left\{ {\left. \left( {x,y,z} \right) \middle| {r_{w}^{2} < {x^{2} + y^{2}} < r_{e}^{2}} \right.,{z = {0\mspace{14mu} {or}\mspace{14mu} H}}} \right\}}} & (135) \end{matrix}$

Embodiment 5

This embodiment provides oil phase flow simulation method through treating the wellbore as reservoir for a partially open vertical well in a homogeneous reservoir. The physical model is shown in FIG. 13.

The general equation of oil phase flow can be established by applying the mass conservation principle:

-   -   Oil phase governing equation:

$\begin{matrix} {{{\nabla{\cdot \left\lbrack {\frac{1}{B_{o}}\lambda_{o}{\nabla p_{o}}} \right\rbrack}} = {\frac{\partial}{\partial t}\left( {\frac{1}{B_{o}}\varphi} \right)}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (136) \end{matrix}$

-   -   Boundary condition Equation:

$\begin{matrix} {{\left( {{c_{o,1}p_{o}} + {c_{o,2}\lambda_{o}\frac{\partial p_{o}}{\partial n^{\partial\Omega}}}} \right) = g_{o}},\left( {x,t} \right),{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (137) \end{matrix}$

-   -   Initial condition equation:

p _(o)(x,0)=ƒ_(o)(x),x∈Ω  (138)

where

$\begin{matrix} {\mspace{79mu} {p_{o} = {p_{o}\left( {x,t} \right)}}} & (139) \\ {\mspace{79mu} {q_{o} = {q_{o}(t)}}} & (140) \\ {\lambda_{o} = \left\{ \begin{matrix} {{\frac{1}{\mu}\begin{bmatrix} \; & \; & \; & \; \\ K_{r_{1}} & 0 & \; & 0 \\ 0 & K_{r_{2}} & \; & 0 \\ 0 & 0 & K_{z_{1}} & \left( {1 - {\rho_{o}g\frac{\partial z}{\partial p}}} \right) \end{bmatrix}},} & {\left( {x,t} \right) \in {\Omega_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {{\frac{1}{\mu}\begin{bmatrix} K_{r_{2}} & 0 & 0 \\ 0 & K_{r_{2}} & 0 \\ 0 & 0 & K_{z_{2}} \end{bmatrix}},} & {\left( {x,t} \right) \in {\Omega_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix} \right.} & (141) \\ {\mspace{79mu} {{c_{o,1} \equiv 0},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}}} & (142) \\ {\mspace{79mu} {c_{o,2} = \left\{ \begin{matrix} {{{- \pi}\; r_{w}^{2}},} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{{ma}x}} \right\rbrack}} \\ {1,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix} \right.}} & (143) \\ {\mspace{79mu} {{g_{o}\left( {x,t} \right)} = \left\{ \begin{matrix} {q,} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {0,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix} \right.}} & (144) \\ {\mspace{79mu} {\Omega = {\Omega_{1}U\; \Omega_{2}}}} & (145) \\ {\mspace{79mu} {\Omega_{1} = \left\{ {\left. \left( {x,y,z} \right) \middle| {{x^{2} + y^{2}} \leq r_{w}^{2}} \right.,{0 < z < H}} \right\}}} & (146) \\ {\mspace{79mu} {\Omega_{2} = \left\{ {\left. \left( {x,y,z} \right) \middle| {r_{w}^{2} < {x^{2} + y^{2}} < r_{e}^{2}} \right.,{H_{1} < z < H}} \right\}}} & (147) \\ {\mspace{79mu} {{\partial\Omega} = {\Gamma_{1}U\; \Gamma_{2}}}} & (148) \\ {\mspace{79mu} {\Gamma_{1} = \left\{ {\left. \left( {x,y,z} \right) \middle| {{x^{2} + y^{2}} \leq r_{w}^{2}} \right.,{z = 0}} \right\}}} & (149) \\ {\mspace{79mu} {{\Gamma_{2} = \left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{w}^{2}},{0 < z < h_{1}},{h_{2} < z \leq H}} \right\}}\mspace{79mu} {U\left\{ {\left. \left( {x,y,z} \right) \middle| {{x^{2} + y^{2}} \leq r_{w}^{2}} \right.,{z = h_{2}}} \right\}}\mspace{79mu} {U\left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{e}^{2}},{H_{1} \leq z \leq H}} \right\}}\mspace{79mu} {U\left\{ {\left. \left( {x,y,z} \right) \middle| {r_{w}^{2} < {x^{2} + y^{2}} < r_{e}^{2}} \right.,{z = {H_{1}\mspace{14mu} {or}\mspace{14mu} H}}} \right\}}}} & (150) \end{matrix}$

Embodiment 6

This embodiment provides oil phase flow simulation method through treating the wellbore as inner boundary for a fully open vertical well in a homogeneous radial 2-zone composite reservoir. The physical model is shown in FIG. 14.

The general equation of oil phase flow can be established by applying the mass conservation principle:

-   -   Oil phase governing equation:

$\begin{matrix} {{{\nabla{\cdot \left\lbrack {\frac{1}{B_{o}}\lambda_{o}{\nabla p_{o}}} \right\rbrack}} = {\frac{\partial}{\partial t}\left( {\frac{1}{B_{o}}{\varphi S}_{o}} \right)}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (151) \end{matrix}$

-   -   Boundary condition equation:

$\begin{matrix} {{\left( {{c_{o,1}p_{o}} + {c_{o,2}\lambda_{o}\frac{\partial p_{o}}{\partial n^{\partial\Omega}}}} \right) = g_{o}},\left( {x,t} \right),{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (152) \end{matrix}$

-   -   Initial condition equation:

p _(o)(x,0)=ƒ_(o)(x),x∈Ω  (153)

Where

$\begin{matrix} {p_{o} = {p_{o}\left( {x,t} \right)}} & (154) \\ {q_{o} = {q_{o}(t)}} & (155) \\ {\lambda_{o} = \left\{ \begin{matrix} {{\frac{1}{\mu_{1}}\begin{bmatrix} K_{r\; 1} & 0 \\ 0 & K_{r\; 1} \end{bmatrix}},} & {\left( {x,t} \right) \in {\Omega_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {{\frac{1}{\mu_{2}}\begin{bmatrix} K_{r\; 2} & 0 \\ 0 & K_{r\; 2} \end{bmatrix}},} & {\left( {x,t} \right) \in {\Omega_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix} \right.} & (156) \\ {{c_{o,1} \equiv 0},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (157) \\ {c_{o,2} = \left\{ \begin{matrix} {{{- 2}\pi \; r_{w}h},} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {1,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix} \right.} & (158) \\ {{g_{o}\left( {x,t} \right)} = \left\{ \begin{matrix} {q,} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {0,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix} \right.} & (159) \\ {\Omega = {\Omega_{1}U\; \Omega_{2}}} & (160) \\ {\Omega_{1} = \left\{ \left( {x,y} \right) \middle| {r_{w}^{2} < {x^{2} + y^{2}} \leq r_{1}^{2}} \right\}} & (161) \\ {\Omega_{2} = \left\{ \left( {x,y} \right) \middle| {r_{1}^{2} < {x^{2} + y^{2}} < r_{e}^{2}} \right\}} & (162) \\ {{\partial\Omega} = {\Gamma_{1}U\; \Gamma_{2}}} & (163) \\ {\Gamma_{1} = \left\{ {\left. \left( {x,y} \right) \middle| {x^{2} + y^{2}} \right. = r_{w}^{2}} \right\}} & (164) \\ {{\Gamma_{2} = \left\{ {\left. \left( {x,y} \right) \middle| {x^{2} + y^{2}} \right. = r_{e}^{2}} \right\}}\mspace{50mu}} & (165) \end{matrix}$

Embodiment 7

This embodiment provides oil phase flow simulation method through treating the wellbore as reservoir for a fully open vertical well in a homogeneous radial 2-zone composite reservoir. The physical model is shown in FIG. 15.

The general equation of oil phase flow can be established by applying the mass conservation principle:

Oil phase governing equation:

$\begin{matrix} {{{\nabla{\cdot \left\lbrack {\frac{1}{B_{o}}\lambda_{o}{\nabla p_{o}}} \right\rbrack}} = {\frac{\partial}{\partial t}\left( {\frac{1}{B_{o}}\varphi \; S_{o}} \right)}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (166) \end{matrix}$

Boundary condition equation:

$\begin{matrix} {{\left( {{c_{o,1}p_{o}} + {c_{o,2}\lambda_{o}\frac{\partial p_{o}}{\partial n^{\partial\Omega}}}} \right) = g_{o}},\left( {x,t} \right),{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (167) \end{matrix}$

Initial condition equation:

p _(o)(x,0)=ƒ_(o)(x),x∈Ω  (168)

Where

$\begin{matrix} {\mspace{79mu} {p_{o} = {p_{o}\left( {x,t} \right)}}} & (169) \\ {\mspace{79mu} {q_{o} = {q_{o}(t)}}} & (170) \\ {\lambda_{o} = \left\{ \begin{matrix} {\frac{1}{\mu}\begin{bmatrix} \; & \; & \; & \; \\ K_{r_{1}} & 0 & \; & 0 \\ 0 & K_{r_{2}} & \; & 0 \\ 0 & 0 & K_{z_{1}} & \left( {1 - {\rho_{o}g\frac{\partial z}{\partial p}}} \right) \end{bmatrix}} & {,{\left( {x,t} \right) \in {\Omega_{1} \times \left( {0,t_{\max}} \right\rbrack}}} \\ {\frac{1}{\mu}\begin{bmatrix} K_{r_{2}} & 0 & 0 \\ 0 & K_{r_{2}} & 0 \\ 0 & 0 & K_{z_{2}} \end{bmatrix}} & {,{\left( {x,t} \right) \in {\Omega_{2} \times \left( {0,t_{\max}} \right\rbrack}}} \\ {\frac{1}{\mu}\begin{bmatrix} K_{r_{3}} & 0 & 0 \\ 0 & K_{r_{3}} & 0 \\ 0 & 0 & K_{z_{3}} \end{bmatrix}} & {,{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} \end{matrix} \right.} & (171) \\ {\mspace{79mu} {{c_{o,1} \equiv 0},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}}} & (172) \\ {\mspace{79mu} {c_{o,2} = \left\{ \begin{matrix} {{{- \pi}\; r_{w}^{2}},} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{{ma}x}} \right\rbrack}} \\ {1,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix} \right.}} & (173) \\ {\mspace{79mu} {{g_{o}\left( {x,t} \right)} = \left\{ \begin{matrix} {q,} & {\left( {x,t} \right) \in {\Gamma_{1} \times \left( {0,t_{\max}} \right\rbrack}} \\ {0,} & {\left( {x,t} \right) \in {\Gamma_{2} \times \left( {0,t_{\max}} \right\rbrack}} \end{matrix} \right.}} & (174) \\ {\mspace{79mu} {\Omega = {\Omega_{1}U\; \Omega_{2}U\; \Omega_{3}}}} & (175) \\ {\mspace{79mu} {\Omega_{1} = \left\{ {\left. \left( {x,y,z} \right) \middle| {{x^{2} + y^{2}} \leq r_{w}^{2}} \right.,{0 < z < H}} \right\}}} & (176) \\ {\mspace{79mu} {\Omega_{2} = \left\{ \left( {x,y} \right) \middle| {r_{w}^{2} < {x^{2} + y^{2}} \leq r_{1}^{2}} \right\}}} & (177) \\ {\mspace{85mu} {\Omega_{3} = \left\{ \left( {x,y} \right) \middle| {r_{w}^{2} < {x^{2} + y^{2}} \leq r_{e}^{2}} \right\}}} & (178) \\ {\mspace{79mu} {{\partial\Omega} = {\Gamma_{1}U\; \Gamma_{2}}}} & (179) \\ {\mspace{79mu} {\Gamma_{1} = \left\{ {\left. \left( {x,y,z} \right) \middle| {{x^{2} + y^{2}} \leq r_{w}^{2}} \right.,{z = 0}} \right\}}} & (180) \\ {\mspace{79mu} {{\Gamma_{2} = \left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{w}^{2}},{0 < z < H}} \right\}}\mspace{79mu} {U\left\{ {{\left. \left( {x,y,z} \right) \middle| {x^{2} + y^{2}} \right. = r_{e}^{2}},{H_{1} \leq z \leq H}} \right\}}\mspace{79mu} {U\left\{ {\left. \left( {x,y,z} \right) \middle| {r_{w}^{2} < {x^{2} + y^{2}} < r_{e}^{2}} \right.,{z = {H_{1}\mspace{14mu} {or}\mspace{14mu} H}}} \right\}}}} & (181) \end{matrix}$

Embodiment 8

This embodiment provides flow simulation and transient pressure well testing analysis methods for tube-shaped reservoir. The physical model corresponding to the pressure drawdown well testing model is assumed as follows:

The reservoir is composed of single closed tube-shaped reservoir as shown in FIG. 16,

2) In the initial state, the pressure everywhere in the reservoir is the original reservoir pressure,

3) The fluid flow in the reservoir follows linear flow law,

4) The fluid and rock in the reservoir are slightly compressible,

5) The wellbore storage effect as well as the skin effect are not considered,

The dimensionless mathematical model corresponding to the pressure drawdown well test model is written as

$\begin{matrix} {\frac{\partial^{2}p_{D}}{\partial x_{D}^{2}} = \frac{\partial p_{D}}{\partial t_{D}}} & (182) \\ {p_{D}\left( {x_{D},{t_{D} = 0}} \right)} & (183) \\ {\left. {\frac{A_{D}}{2\pi}\frac{\partial p_{D}}{\partial x_{D}}} \right|_{x_{D} = 0} = {- q_{D}}} & (184) \\ {\left. \frac{\partial p_{D}}{\partial x_{D}} \right|_{x_{D} = L_{D}} = 0} & (185) \end{matrix}$

Dimensionless variables are defined as:

$\begin{matrix} {t_{D} = \frac{\lambda \; t}{\varphi \; C_{t}l^{2}}} & (186) \\ {p_{D} = {\frac{2\pi \; l\; \lambda}{q_{SC}B}\left( {p_{i} - p} \right)}} & (187) \\ {L_{D} = \frac{L}{l}} & (188) \\ {x_{D} = \frac{x}{l}} & (189) \\ {q_{D} = {q/q_{SC}}} & (190) \end{matrix}$

Laplace transformation of equations Eqs182-185 are performed based on t_(D). The dimensionless pressure solution in the Laplace space is obtained as:

$\begin{matrix} {{\overset{\_}{p}}_{D} = {{\overset{\_}{q}}_{D}\frac{2{{\pi cosh}\left( {\left( {L_{D} - x_{D}} \right)\sqrt{u}} \right)}}{A_{D}\sqrt{u}{\sinh \left( {L_{D}\sqrt{u}} \right)}}}} & (191) \end{matrix}$

especially, setting x_(D)=0 as a reference point for bottom hole pressure, i. e.,

p _(wD) =p _(D)(x _(D)=0)  (192)

Typical type curves can be drawn by performing Stehfest numerical inversion as shown in FIGS. 17-19.

The specific meanings of the identifiers in embodiment 8 are shown as follows:

A—open flowing area of tube-shaped reservoir, m²; B—volume factor, m³/m³; C_(t)—compressibility of tube-shaped reservoir, 1/Pa; l—reference length, m; L—length of tube-shaped reservoir, m; p—pressure of tube-shaped reservoir, Pa; p_(i)—initial pressure of tube-shaped reservoir·Pa; p_(w)—bottom hole pressure, Pa; q—flow rate, m³/s; q_(sc)—reference flow rate, m³/s; t—time, s; u—Laplace variable of dimensionless time t_(D); x—x-axis distance, m; λ—generalized mobility of tube-shaped reservoir, m²/Pa·s; ϕ—porosity of tube-shaped reservoir, %; ∂—partial differential operator.

Embodiment 9

This embodiment provides flow simulation and transient pressure well testing analysis methods for a cylindrical reservoir. The physical model corresponding to the pressure drawdown well testing model is assumed as follows:

The reservoir is a cylindrical closed system and the point source is located on the axis of the cylindrical reservoir, which is shown in FIG. 20;

2) In the initial state, the pressure everywhere in the reservoir is the original reservoir pressure,

3) The fluid flow in the reservoir follows linear flow law,

4) The fluid and rock in the reservoir are slightly compressible,

5) The wellbore storage effect as well as the skin effect are not considered.

The dimensionless mathematical model corresponding to the pressure drawdown well test model is written as:

$\begin{matrix} {{{\frac{1}{r_{D}}\frac{\partial\;}{\partial r_{D}}\left( {r_{D}\frac{\partial p_{D}}{\partial r_{D}}} \right)} + {\kappa_{D}\frac{\partial^{2}p_{D}}{\partial z_{D}^{2}}}} = \frac{\partial p_{D}}{\partial t_{D}}} & (193) \\ {p_{D}\left( {r_{D},z_{D},{t_{D} = 0}} \right)} & (194) \\ {\lim\limits_{\underset{r_{D}\rightarrow 0}{ɛ_{D}\rightarrow 0}}\left\lbrack {{{ɛ_{D}r_{D}\frac{\partial p_{D}}{\partial r_{D}}} - \left\{ \begin{matrix} {{- q_{D}},} & {{{z_{D} - z_{wD}}} \leq \frac{ɛ_{D}}{2}} \\ {0,} & {otherwise} \end{matrix} \right\rbrack} = 0} \right.} & (195) \\ {\left. \frac{\partial p_{D}}{\partial z_{D}} \right|_{z_{D} = 0} = 0} & (196) \\ {\left. \frac{\partial p_{D}}{\partial z_{D}} \right|_{z_{D} = h_{D}} = 0} & (197) \\ {\left. \frac{\partial p_{D}}{\partial z_{D}} \right|_{r_{D} = r_{eD}} = 0} & (198) \end{matrix}$

Dimensionless variables are defined as:

$\begin{matrix} {p_{D} = {\frac{2\pi \; l\; \lambda_{r}}{q_{SC}B}\left( {p_{i} - p} \right)}} & (199) \\ {t_{D} = \frac{\lambda_{r}t}{\varphi \; C_{t}l^{2}}} & (200) \\ {r_{eD} = \frac{r_{e}}{l}} & (201) \\ {h_{D} = \frac{h}{l}} & (202) \\ {z_{D} = \frac{z}{l}} & (203) \\ {z_{wD} = \frac{z_{w}}{l}} & (204) \\ {r_{D} = \frac{r}{l}} & (205) \\ {ɛ_{D} = \frac{ɛ}{l}} & (206) \\ {\kappa_{D} = \frac{\lambda_{z}}{\lambda_{r}}} & (207) \\ {q_{D} = {q/q_{SC}}} & (208) \end{matrix}$

Laplace transformation of equations Eqs.193 and 198 are performed based on t_(D). The dimensionless pressure solution in the Laplace space by applying variable separation method is obtained as:

$\begin{matrix} {{\overset{\_}{p}}_{D} = {{\overset{\_}{q}}_{D}{\sum\limits_{n = 0}^{\infty}{{a_{n}\left\lbrack {{K_{0}\left( {r_{D}b_{n}} \right)} + {\frac{K_{1}\left( {r_{eD}b_{n}} \right)}{I_{1}\left( {r_{eD}b_{n}} \right)}{I_{0}\left( {r_{D}b_{n}} \right)}}} \right\rbrack}\cos \frac{n\; {\pi z}_{D}}{h_{D}}}}}} & (209) \end{matrix}$

Where

$\begin{matrix} {a_{n} = \left\{ \begin{matrix} {1,} & {n = 0} \\ {{2\cos \; \frac{n\; \pi \; z_{wD}}{h_{D}}},} & {{n = 1},2,\ldots \mspace{14mu},\infty} \end{matrix} \right.} & (210) \\ {{b_{n} = \sqrt{u + {\lambda_{z}/{\lambda_{r}\left( {n\; {\pi/h_{D}}} \right)}^{2}}}},{n = 0},1,2,\ldots \mspace{14mu},\infty} & (211) \end{matrix}$

I₀(g) and I₁(g) are the category I modified zero-order and first-order Bessel functions respectively, K₀(g) and K₁(g) are the category II modified zero-order and first-order Bessel functions respectively.

Especially, setting r_(D)=1, z_(D)=z_(wD) as reference points of bottom hole pressure, i. e.,

p _(wD) =p _(D)(r _(D)=1,z _(D) =z _(wD))  (212)

Typical type curves can be drawn by performing Stehfest numerical inversion as shown in FIGS. 21-26.

The specific meanings of the identifiers in embodiment 9 are shown as follows:

B—volume factor, m³/m; C_(t)—compressibility of cylindrical reservoir, 1/Pa; h—height of cylindrical reservoir, m; l—reference length, m; p—pressure of cylindrical reservoir, Pa; p_(i)—initial pressure of cylindrical reservoir, Pa; p_(w)—bottom hole pressure, Pa; q—flow rate, m³/s; q_(sc)—reference flow rate, m³/s; r_(e)—radius of cylindrical reservoir, m; t—time, s; u—Laplace variable corresponding to dimensionless time t_(D); z—z-axis distance, m; z_(w)—central point position of point source along z-axis, m; ε—height of the point source (tends to zero), m; λ_(r)—radial generalized mobility of cylindrical reservoir, m²/Pa·s; λ_(z)—vertical generalized mobility of cylindrical reservoir, m²/Pa·s; ϕ—porosity of cylindrical reservoir, %; ∂—partial differential operator.

If necessary, the line source solution and cylindrical plane source solutions can be obtained through integrating the point source solution Eq.209. For example,

-   -   Horizontal well (line source):

$\begin{matrix} {{\overset{\_}{p}}_{LD} = {\frac{{\overset{\_}{q}}_{D\;}}{{2L_{D}}\;}{\int_{- L_{D}}^{L_{D}}{\sum\limits_{n = 0}^{\infty}{{a_{n}\begin{bmatrix} {{K_{0}\left( {\sqrt{\left( {x_{D} - x_{wD}} \right)^{2} - y_{D}^{2}}b_{n}} \right)} +} \\ {\frac{K_{1}\left( {r_{eD}b_{n}} \right)}{I_{1}\left( {r_{eD}b_{n}} \right)}{I_{0}\left( {\sqrt{\left( {x_{D} - x_{wD}} \right)^{2} - y_{D}^{2}}b_{n}} \right)}} \end{bmatrix}}\cos \; \frac{n\; \pi \; z_{D}}{h_{D}}d\; x_{wD}}}}}} & (213) \end{matrix}$

Where L_(D) is the dimensionless half length of horizontal well.

Partially open hydraulic fractured vertical well (cylindrical plane source):

$\begin{matrix} {{\overset{\_}{p}}_{fD} = {\frac{{\overset{\_}{q}}_{D}}{2{x_{fD}\left( {z_{bD} - z_{aD}} \right)}}{\int_{z_{aD}}^{z_{bD}}{\int_{- x_{fD}}^{x_{fD}}{\sum\limits_{n = 0}^{\infty}{\begin{bmatrix} {{K_{0}\left( {\sqrt{\left( {x_{D} - x_{wD}} \right)^{2} - y_{D}^{2}}b_{n}} \right)} +} \\ {\frac{K_{1}\left( {r_{eD}b_{n}} \right)}{I_{1}\left( {r_{eD}b_{n}} \right)}{I_{0}\left( {\sqrt{\left( {x_{D} - x_{wD}} \right)^{2} - y_{D}^{2}}b_{n}} \right)}} \end{bmatrix}\cos \; \frac{n\; \pi \; z_{D}}{h_{D}}{dx}_{wD}{dz}_{wD}}}}}}} & (214) \end{matrix}$

Where x_(fD) is the dimensionless half length of hydraulic fractures, z_(aD), z_(bD) are the top and bottom positions of hydraulic fractures.

Embodiment 10

This embodiment provides flow simulation and transient pressure well testing analysis methods for a spherical reservoir. The physical model corresponding to the pressure drawdown well testing model is assumed as follows:

1) The reservoir is a spherical closed system and the point source is located inside the spherical reservoir as shown in FIG. 27, 2) In the initial state, the pressure everywhere in the reservoir is the original reservoir pressure, 3) The fluid flow in the reservoir follows linear flow law, 4) The fluid and rock in the reservoir are slightly compressible, 5) The wellbore storage effect as well as the skin effect are not considered,

The dimensionless mathematical model corresponding to the pressure drawdown well test model is written as:

$\begin{matrix} {{{\frac{1}{r_{D}^{2}}\frac{\partial}{\partial r_{D}}\left( {r_{D}^{2}\frac{\partial p_{D}}{\partial r_{D}}} \right)} + {\frac{1}{r_{D}^{2}\sin \; \theta}\frac{\partial}{\partial\theta}\left( {\sin \; \theta \; \frac{\partial p_{D}}{\partial\theta}} \right)}} = \frac{\partial p_{D}}{\partial t_{D}}} & (215) \\ {{p_{D}\left( {r_{D},\theta,{t_{D} = 0}} \right)} = 0} & (216) \\ {{\lim\limits_{r_{D}->0}{2r_{D}^{2}\frac{\partial p_{D}}{\partial r_{D}}}} = {- q_{D}}} & (217) \\ {\frac{\partial p_{D}}{\partial r_{D}}{_{r_{D} = \sqrt{r_{eD}^{2} + r_{aD}^{2} - {2r_{eD}r_{aD}{co}\; s\; \Phi}}}{= 0}}} & (218) \end{matrix}$

-   -   Dimensionless variables are defined as:

$\begin{matrix} {t_{D} = \frac{\lambda \; t}{\varphi \; C_{t}l^{2}}} & (219) \\ {p_{D} = {\frac{2\pi \; \lambda \; l}{q_{sc}B}\left( {p_{i} - p} \right)}} & (220) \\ {r_{aD} = \frac{r_{a}}{l}} & (221) \\ {r_{bD} = \frac{r_{b}}{l}} & (222) \\ {r_{eD} = \frac{r_{e}}{l}} & (223) \\ {r_{D} = \sqrt{r_{bD}^{2} + r_{aD}^{2} - {2r_{bD}r_{aD}\cos \; \Phi}}} & (224) \\ {\theta = {\arcsin \; \frac{r_{D}}{r_{bD}\sin \; \Phi}}} & (225) \\ {q_{D} = {q/q_{sc}}} & (226) \end{matrix}$

The dimensionless pressure solution of Eqs.215-218 in the Laplace space by applying Laplace integral transformation and boundary construction method is obtained as:

$\begin{matrix} {{\overset{\_}{p}}_{D} = {{\overset{\_}{q}}_{D}{\sum\limits_{n = 0}^{\infty}{\frac{n + {1/2}}{\sqrt{r_{aD}r_{bD}}}{I_{n + \frac{1}{2}}\left( {r_{aD}\sqrt{u}} \right)}{\quad{{\left\lbrack {{K_{n + \frac{1}{2}}\left( {r_{bD}\sqrt{u}} \right)} - {\frac{{{nK}_{n + \frac{1}{2}}\left( {r_{eD}\sqrt{u}} \right)} - {r_{eD}\sqrt{u}{K_{n + \frac{3}{2}}\left( {r_{eD}\sqrt{u}} \right)}}}{{{nI}_{n + \frac{1}{2}}\left( {r_{eD}\sqrt{u}} \right)} + {r_{eD}\sqrt{u}{I_{n + \frac{3}{2}}\left( {r_{eD}\sqrt{u}} \right)}}}{I_{n + \frac{1}{2}}\left( {r_{bD}\sqrt{u}} \right)}}} \right\rbrack {P_{n}\left( {\cos \; \Phi} \right)}},{r_{bD} > r_{aD}}}}}}}} & (227) \end{matrix}$

Where

$I_{n + \frac{1}{2}}(g)$

is the category I modified n+½ order Bessel function,

${K_{n + \frac{1}{2}}(g)}\mspace{14mu} {and}\mspace{14mu} {K_{n + \frac{3}{2}}(g)}$

are the category II modified n+½ order and n+3/2 order Bessel functions respectively. P_(n) is the category I nth order Legendre function.

In particular, setting r_(aD)=0, r_(bD)=1 as the reference points of bottom hole pressure, i. e.,

p _(wD) =p _(D)(r _(aD)=0,r _(bD)=1)  (228)

Typical type curves can be drawn by performing Stehfest numerical inversion as shown in FIGS. 28-30.

The specific meanings of the identifiers in embodiment 10 are shown as follows:

B—volume factor, m³/m³; C_(t)—compressibility of spherical reservoir, 1/Pa; l—reference length, m; p—pressure of spherical reservoir, Pa; p_(i)—initial pressure of spherical reservoir, Pa; p_(w)—bottom hole pressure, Pa; q—flow rate, m³/s; q_(sc)—reference flow rate, m³/s; r—distance from the point source to the observation point, m; r_(a)—eccentric distance, m; r_(b)—the distance from the center of the spherical reservoir to the observation point, m; r_(e)—radius of spherical reservoir, m; t—time, s; u—Laplace variable of dimensionless time t_(D); λ—generalized mobility of spherical reservoir, m²/Pa·s; ϕ—porosity of spherical reservoir, %; Φ—angle between r_(a) and r_(b); ∂—partial differential operator.

If necessary, the line source solution and spherical plane source solutions can be obtained through integrating the point source solution Eq.227, but in the process of integration, we should pay attention to r_(bD)>r_(aD).

Embodiment 11

This embodiment provides a composite flow simulation and transient pressure well testing analysis methods for a compound body of hollow cylinder and cylindrical reservoir. The physical model corresponding to the pressure drawdown well testing model is assumed as follows:

1) The reservoir is a composite reservoir of hollow cylinder and cylinder. The cylindrical reservoir is nested in the middle of the hollow cylindrical reservoir, and the point source is located inside the cylindrical reservoir, which is shown in FIG. 31; 2) In the initial state, the pressure everywhere in the reservoir is the original reservoir pressure, 3) The fluid flow in the reservoir follows linear flow law, 4) The fluid and rock in the reservoir are slightly compressible, 5) The wellbore storage effect as well as the skin effect are not considered,

The dimensionless mathematical model corresponding to the pressure drawdown well test model is written as:

$\begin{matrix} {\mspace{20mu} {{\frac{\partial^{2}p_{1D}}{\partial r_{D}^{2}} + {\frac{1}{r_{D}}\frac{\partial p_{1D}}{\partial r_{D}}} + {\frac{1}{h_{1D}^{2}}\frac{\partial^{2}p_{1D}}{\partial z_{D}^{2}}}} = \frac{\partial p_{1D}}{\partial t_{D}}}} & (229) \\ {\mspace{20mu} {{{\frac{\partial^{2}p_{2D}}{\partial r_{D}^{2}} + {\frac{1}{r_{D}}\frac{\partial p_{2D}}{\partial r_{D}}} + {\frac{1}{h_{2D}^{2}}\frac{\partial^{2}p_{2D}}{\partial z_{D}^{2}}}} = {\frac{1}{\sigma}\frac{\partial p_{2D}}{\partial t_{D}}}}\mspace{20mu} {{p_{1D}\left( {r_{D},z_{D},0} \right)} = {{p_{2D}\left( {r_{D},z_{D},0} \right)} = 0}}}} & (230) \\ {{\lim\limits_{\underset{r_{D}->0}{ɛ_{D}->0}}\left\lbrack {{\int_{z_{wD} - {ɛ_{D}/2}}^{z_{wD} + {ɛ_{D}/2}}{r_{D}\frac{\partial p_{1D}}{\partial r_{D}}{dz}_{D}}} - \begin{Bmatrix} {{- q_{D}},} & {{{{z_{D} - z_{wD}}} \leq {ɛ_{D}/2}};} \\ {0,} & {{else}.} \end{Bmatrix}} \right\rbrack} = 0} & (231) \\ {\mspace{20mu} {{\frac{\partial p_{1D}}{\partial z_{D}}{_{z_{D} = z_{{j2}\; D}}{= \frac{\partial p_{2D}}{\partial z_{D}}}}_{z_{D} = h_{D}}} = 0}} & (232) \\ {\mspace{20mu} {{\frac{\partial p_{1D}}{\partial z_{D}}{_{z_{D} = z_{j\; 1D}}{= \frac{\partial p_{2D}}{\partial z_{D}}}}_{z_{D} = 0}} = 0}} & (233) \\ {\mspace{20mu} \left\{ \begin{matrix} {{\frac{\partial p_{1D}}{\partial r_{D\;}}{_{r_{D} = r_{1D}}{= {\kappa_{D}\frac{\partial p_{2D}}{\partial r_{D}}}}}_{r_{D} = r_{1D}}},\left( {z_{j\; 1D} \leq z_{D} \leq z_{j\; 2D}} \right)} \\ {\frac{\partial p_{2D}}{\partial r_{D}}{_{r_{D} = r_{1D}}{{= 0},\left( {0 \leq z_{D} < z_{j\; 1\; D}} \right)}}} \\ {\frac{\partial p_{2D}}{\partial D}{_{r_{D} = r_{1D}}{{= 0},\left( {z_{j\; 2D} < z_{D} \leq h_{D}} \right)}}} \end{matrix} \right.} & (234) \\ {\mspace{20mu} {p_{1D}{_{r_{D} = r_{1D}}{= p_{2D}}}_{r_{D} = r_{1D}}}} & (235) \\ {\mspace{20mu} {\frac{\partial p_{2D}}{\partial r_{D}}{_{r_{D} = r_{2D}}{= 0}}}} & (236) \end{matrix}$

Dimensionless variables are defined as

$\begin{matrix} {p_{1D} = {\frac{2\pi \; \lambda_{r\; 1}h_{1}}{q_{s\; c}B}\left( {p_{i} - p_{1}} \right)}} & (237) \\ {p_{2D} = {\frac{2\pi \; \lambda_{r\; 1}h_{1}}{q_{sc}B}\left( {p_{i} - p_{2}} \right)}} & (238) \\ {r_{D} = \frac{r}{l}} & (239) \\ {t_{D} = \frac{\lambda_{r\; 1}t}{\varphi_{1}C_{t\; 1}l^{2}}} & (240) \\ {z_{D} = \frac{z}{h_{1}}} & (241) \\ {z_{wD} = \frac{z_{w}}{h_{1}}} & (242) \\ {h_{1D} = {\frac{h_{1}}{l}\sqrt{\frac{\lambda_{r\; 1}}{\lambda_{z\; 1}}}}} & (243) \\ {h_{2D} = {\frac{h_{1}}{l}\sqrt{\frac{\lambda_{r\; 2}}{\lambda_{z\; 2}}}}} & (244) \\ {\sigma = {\frac{\lambda_{r\; 2}}{\varphi_{2}C_{t\; 2}}/\frac{\lambda_{r\; 1}}{\varphi_{1}C_{t\; 1}}}} & (245) \\ {\kappa_{D} = \frac{\lambda_{r\; 2}}{\lambda_{r\; 1}}} & (246) \\ {z_{j\; 1D} = \frac{z_{j}}{h_{1}}} & (247) \\ {z_{j\; 2D} = \frac{h_{1} + z_{j}}{h_{1}}} & (248) \\ {h_{D} = \frac{h_{2}}{h_{1}}} & (249) \\ {q_{D} = {q/q_{sc}}} & (250) \end{matrix}$

The dimensionless pressure solution of Eqs.229-236 in the Laplace space by applying Laplace integral transformation and Fourier finite cosine transformation is obtained as:

$\begin{matrix} {{\overset{\_}{p}}_{1D} = {{\overset{\_}{q}}_{D}\begin{Bmatrix} {{K_{0}\left( {r_{D}\delta_{10}} \right)} + {g_{0}{I_{0}\left( {r_{D}\delta_{10}} \right)}} +} \\ \begin{matrix} {\sum\limits_{m = 1}^{\infty}{2{\cos \left( {\xi_{1m}\left( {z_{j\; 1D} - z_{wd}} \right)} \right)}{\cos \left( {\xi_{1m}\left( {z_{j\; 1D} - z_{D}} \right)} \right)}}} \\ \left\lbrack {{K_{0}\left( {r_{D}\delta_{1m}} \right)} + {g_{m}{I_{0}\left( {r_{D}\delta_{1m}} \right)}}} \right\rbrack \end{matrix} \end{Bmatrix}}} & (251) \end{matrix}$

Where

$\begin{matrix} {\mspace{20mu} {g_{m} = \frac{{F_{n\; m}{K_{1}\left( {r_{1D}\delta_{1m}} \right)}} - {{\cos \left( {\xi_{1m}\left( {z_{D} - z_{j\; 1D}} \right)} \right)}{K_{0}\left( {r_{1D}\delta_{1m}} \right)}}}{{F_{n\; m}{I_{1}\left( {r_{1D}\delta_{1m}} \right)}} + {{\cos \left( {\xi_{1m}\left( {z_{D} - z_{j\; 1D}} \right)} \right)}{I_{0}\left( {r_{1D}\delta_{1m}} \right)}}}}} & (252) \\ {F_{n\; m} = {\sum\limits_{n = 0}^{\infty}{\frac{4{\xi_{2n}\begin{pmatrix} {{\xi_{1m}{\sin \left( \xi_{1m} \right)}{\cos \left( {\xi_{2n}\left( {z_{j\; 1D} + 1} \right)} \right)}} +} \\ {\xi_{2n}\left( {{\sin \left( {\xi_{2n}z_{j\; 1D}} \right)} - {{\cos \left( \xi_{1m} \right)}{\sin \left( {\xi_{2n}\left( {z_{j\; 1D} + 1} \right)} \right)}}} \right)} \end{pmatrix}}}{\left( {\xi_{1m} - \xi_{2n}} \right)\left( {\xi_{1m} + \xi_{2n}} \right)\left( {{2h_{D}\xi_{2n}} + {\sin \left( {2h_{D}\xi_{2n}} \right)}} \right)} \times \frac{{\delta_{1m}\begin{pmatrix} {{K_{0}\left( {r_{1D}\delta_{2n}} \right)} +} \\ {{{K_{1}\left( {r_{eD}\delta_{2n}} \right)}/{I_{1}\left( {r_{eD}\delta_{2n}} \right)}}{I_{0}\left( {r_{1D}\delta_{2n}} \right)}} \end{pmatrix}}{\cos \left( {\xi_{2n}z_{D}} \right)}}{\kappa_{D}{\delta_{2n}\left( {{K_{1}\left( {r_{1D}\delta_{2n}} \right)} - {{{K_{1}\left( {r_{eD}\delta_{2n}} \right)}/{I_{1}\left( {r_{eD}\delta_{2n}} \right)}}{I_{1}\left( {r_{1D}\delta_{2n}} \right)}}} \right)}}}}} & (253) \\ {\mspace{20mu} {\delta_{1m} = \sqrt{u + \frac{\xi_{1m}^{2}}{h_{1D}^{2}}}}} & (254) \\ {\mspace{20mu} {\delta_{2n} = \sqrt{\frac{u}{\sigma} + \frac{\xi_{2n}^{2}}{h_{2D}^{2}}}}} & (255) \\ {\mspace{20mu} {\xi_{1} = {m\; \pi}}} & (256) \\ {\mspace{20mu} {\xi_{2\;} = \frac{n\; \pi}{h_{D}}}} & (257) \end{matrix}$

I₀(g) and I₁(g) are the category I modified zero-order and first-order Bessel functions respectively, K₀(g) and K₁(g) are the category II modified zero-order and first-order Bessel functions respectively.

Especially, setting r_(D)=1, z_(D)=z_(wD) as reference points of bottom hole pressure, i. e.,

p _(wD) =p _(D)(r _(D)=1,z _(D) =z _(wD))  (258)

Typical type curves can be drawn by performing Stehfest numerical inversion as shown in FIGS. 32-37.

The specific meanings of the identifiers in embodiment 11 are shown as follows:

B—volume factor, m³/m³; C_(t1),C_(t2)—compressibility of cylindrical reservoir and hollow cylindrical reservoir respectively, 1/Pa; h₁,h₂—height of cylindrical reservoir and hollow cylindrical reservoir respectively, m; l—reference length, m; p₁, p₂—pressure of cylindrical reservoir and hollow cylindrical reservoir, Pa; p_(i)—initial pressure of reservoir, Pa: p_(w)—bottom hole pressure, Pa: q—flow rate, m³/s; q_(sc)—reference flow rate, m³/s; r—radial distance from the point source to the axis of cylindrical reservoir, m: r₁,r₂—radius of cylindrical reservoir and hollow cylindrical reservoir, m; t—time, s; u—Laplace variable of dimensionless time t_(D); z—z-axis distance, m; z_(w)—central point position of point source on z-axis, m; z_(j)—vertical position of the low end of the cylindrical reservoir, m; ε—height of the point source (tends to zero), m; λ_(r1),λ_(r2)—generalized mobility of cylindrical reservoir and hollow cylindrical reservoir respectively, m²/Pa·s; ϕ₁,ϕ₂—porosity of cylindrical reservoir and hollow cylindrical reservoir, %; ∂—partial differential operator.

If necessary, the line source solution and spherical plane source solutions can be obtained through integrating the point source solution Eq.251.

Embodiment 12

This embodiment provides a composite flow simulation and transient pressure well testing analysis methods for a compound body of tube-shaped and spherical reservoir. The physical model corresponding to the pressure drawdown well testing model is assumed as follows:

1) The reservoir is a composite reservoir of a compound body of tube-shaped and spherical reservoir as shown in FIG. 38; 2) In the initial state, the pressure everywhere in the reservoir is the original reservoir pressure, 3) The fluid flow in the reservoir follows linear flow law, 4) The fluid and rock in the reservoir are slightly compressible, 5) The wellbore storage effect as well as the skin effect are not considered,

The dimensionless mathematical model corresponding to the pressure drawdown well test model is written as:

$\begin{matrix} {{{\frac{1}{r_{D}^{2}}\frac{\partial}{\partial r_{D}}\left( {r_{D}^{2}\frac{\partial p_{vD}}{\partial r_{D}}} \right)} + {\frac{1}{r_{D}^{2}\sin \; \theta}\frac{\partial}{\partial\theta}\left( {\sin \; \theta \frac{\partial p_{vD}}{\partial\theta}} \right)}} = {\frac{1}{\sigma}\frac{\partial p_{vD}}{\partial t_{D}}}} & (259) \\ {p_{vD} = {\left( {r_{D},{\theta = 0},{t_{D} = 0}} \right) = 0}} & (260) \\ {{- q_{vD}} = {\lim\limits_{r_{D}->0}{2r_{D}^{2}\frac{\lambda_{v}}{\lambda_{1}}\frac{\partial p_{vD}}{\partial r_{D}}}}} & (261) \\ {\frac{\partial p_{vd}}{\partial r_{D}}{_{r_{D} = \sqrt{r_{eD}^{2} + r_{aD}^{2} - {2r_{eD}r_{aD}{co}\; s\; \Phi}}}{= 0}}} & (262) \\ {\frac{\partial^{2}p_{1D}}{\partial x_{D}^{2}} = \frac{\partial p_{1D}}{\partial t_{D}}} & (263) \\ {{p_{1D}\left( {x_{D},{t_{D} = 0}} \right)} = 0} & (264) \\ {\frac{A_{D}}{2\pi}\frac{\partial p_{1D}}{\partial x_{D}}{_{x_{D} = 0}{= {- q_{D}}}}} & (265) \\ {\frac{A_{D}}{2\pi}\frac{\partial p_{1D}}{\partial x_{D}}{_{x_{D} = L_{D}}{= {- q_{vD}}}}} & (266) \\ {p_{1D}{_{x_{D} = L_{D}}{= {p_{vD}_{{r_{bD} = r_{eD}},{r_{aD} = {r_{eD} - 1}},{\Phi = 0}}}}}} & (267) \end{matrix}$

Dimensionless variables are defined as

$\begin{matrix} {t_{D} = \frac{\lambda_{1}t}{\varphi_{1}C_{t\; 1}l^{2}}} & (268) \\ {p_{1D} = {\frac{2\pi \; \lambda_{1}l}{q_{sc}B}\left( {p_{i} - p_{1}} \right)}} & (269) \\ {p_{vD} = {\frac{2\pi \; \lambda_{1}l}{q_{sc}B}\left( {p_{i} - p_{v}} \right)}} & (270) \\ {\sigma = {\frac{\lambda_{v}}{\varphi_{v}C_{tv}}/\frac{\lambda_{1}}{\varphi_{1}C_{t\; 1}}}} & (271) \\ {A_{D} = \frac{A}{l}} & (272) \\ {x_{D} = \frac{x}{l}} & (273) \\ {L_{D} = \frac{L}{l}} & (274) \\ {r_{aD} = \frac{r_{a}}{l}} & (275) \\ {r_{bD} = \frac{r_{b}}{l}} & (276) \\ {r_{eD} = \frac{r_{e}}{l}} & (277) \\ {r_{D} = \sqrt{r_{bD}^{2} + r_{aD}^{2} - {2r_{bD}r_{aD}\cos \; \Phi}}} & (278) \\ {\theta = {\arcsin \; \frac{r_{D}}{r_{bD}\sin \; \Phi}}} & (279) \\ {q_{vD} = {q_{v}/q_{s\; c}}} & (280) \\ {q_{D} = {q/q_{sc}}} & (281) \end{matrix}$

The dimensionless pressure solution of equations Eqs.259 and 267 in the Laplace space by applying Laplace integral transformation and boundary construction method is obtained as:

$\begin{matrix} {{{\overset{\_}{p}}_{D} = {{\overset{\_}{q}}_{D}\frac{2{\pi \left( {{A_{D}\overset{\_}{f}\sqrt{u}{\cosh \left( {\left( {L_{D} - x_{D}} \right)\sqrt{u}} \right)}} - {2\pi \; {\sinh \left( {\left( {L_{D} - x_{D}} \right)\sqrt{u}} \right)}}} \right)}}{A_{D}\sqrt{u}\left( {{A_{D}\overset{\_}{f}\sqrt{u}{\sinh \left( {L_{D}\sqrt{u}} \right)}} - {2\pi \; {\cosh \left( {L_{D}\sqrt{u}} \right)}}} \right)}}}\mspace{20mu} {where}} & (282) \\ {{\overset{\_}{f} = {{- \frac{\lambda_{\text{?}}}{\lambda_{\text{?}}}}{\sum\limits_{n = 0}^{\infty}{\frac{n + {1/2}}{\sqrt{\left( {r_{eD} - 1} \right)r_{eD}}}{{I_{n + \frac{1}{2}}\left( {\left( {r_{eD} - 1} \right)\sqrt{u/\sigma}} \right)}\left\lbrack {{K_{n + \frac{1}{2}}\left( {r_{eD}\sqrt{u/\sigma}} \right)} - {\frac{{{nK}_{n + \frac{1}{2}}\left( {r_{eD}\sqrt{u/\sigma}} \right)} - {r_{eD}\sqrt{{u/\sigma}\;}{K_{n + \frac{3}{2}}\left( {r_{eD}\sqrt{u/\sigma}} \right)}}}{{{nI}_{n + \frac{1}{2}}\left( {r_{eD}\sqrt{u/\sigma}} \right)} + {r_{eD}\sqrt{u/\sigma}{I_{n + \frac{3}{2}}\left( {r_{eD}\sqrt{u/\sigma}} \right)}}}{I_{n + \frac{1}{2}}\left( {r_{eD}\sqrt{u/\sigma}} \right)}}} \right\rbrack}}}}}{\text{?}\text{indicates text missing or illegible when filed}}} & (283) \end{matrix}$

$I_{n + \frac{1}{2}}(g)$

is the category I modified n+½ order Bessel function,

${K_{n + \frac{1}{2}}(g)}\mspace{14mu} {and}\mspace{14mu} {K_{n + \frac{3}{2}}(g)}$

are the category II modified n+½ order and n+3/2 order Bessel functions respectively.

Especially, setting x_(D)=0 as the reference points of bottom hole pressure, i. e.,

p _(wD) =p _(D)(x _(D)=0)  (284)

Typical type curves can be drawn by performing Stehfest numerical inversion as shown in FIG. 39-41.

The specific meanings of the identifiers in embodiment 12 are shown as follows:

A—open flowing area of tube-shaped reservoir, m²: B—volume factor, m³/m³; C_(t1),C_(tv)—compressibility of tube-shaped reservoir and spherical reservoir respectively, 1/Pa; l—reference length, m; L—length of tube-shaped reservoir, m; p₁,p_(v)—pressure of tube-shaped reservoir and spherical reservoir, Pa; p_(i)—initial pressure of tube-shaped and spherical reservoir, Pa; p_(w)—bottom hole pressure, Pa; q—flow rate, m³/s; q_(sc)—reference flow rate, m³/s; q_(v)—flow rate from spherical reservoir to tube-shaped reservoir, m³/s; r—distance from the point source to the observation point, m; r_(a)—eccentric distance, m; r_(b)—the distance from the center of the spherical reservoir to the observation point, m; r_(e)—radius of spherical reservoir, m; t—time, s; u—Laplace variable of dimensionless time t_(D); x—x-axis distance, m; λ₁,λ_(v)—generalized mobility of tube-shaped reservoir and spherical reservoir respectively, m²/Pa·s; ϕ₁,ϕ₂—porosity of tube-shaped reservoir and spherical reservoir, %; Φ—angle between r_(a) and r_(b); ∂—partial differential operator.

Embodiment 13

This embodiment provides flow simulation and transient pressure well testing analysis methods for one-dimensional tube-shaped reservoir. The physical model corresponding to the pressure drawdown well testing model is assumed as follows:

1) The reservoir is composed of a single tube-shaped reservoir as shown in FIG. 46; 2) In the initial state, the pressure everywhere in the reservoir is the original reservoir pressure, 3) The fluid flow in the reservoir follows linear flow law or non-linear flow law (in this case, the non-linear flow refers to high-speed non-Darcy flow, but the turbulent flow and non-Newton flow can be solved in the similar way), 4) The fluid and rock in the reservoir are slightly compressible, 5) The wellbore storage effect as well as the skin effect are not considered,

The dimensionless mathematical model corresponding to the pressure drawdown well test model is written as:

$\begin{matrix} {{\frac{\partial}{\partial x}\left( {{\rho\lambda}\frac{\partial p}{\partial x}} \right)} = \frac{\partial({\rho\varphi})}{\partial t}} & (285) \\ {\lambda = \left\{ \begin{matrix} {\frac{1}{\left. {\frac{\mu}{K} + {\beta\rho}} \middle| v \right|},} & {0 \leq x < X_{1}} \\ {{\alpha \frac{K}{\mu}},} & {X_{1} \leq x \leq X_{2}} \end{matrix} \right.} & (286) \\ {\rho = {\rho_{1}e^{C_{L}{({p - p_{i}})}}}} & (287) \\ {\varphi = {\varphi_{i}e^{C_{f}{({p - p_{i}})}}}} & (288) \\ {\left. {{A\lambda}\frac{\partial p}{\partial x}} \right|_{x = 0} = {q_{0}(t)}} & (289) \\ {\left. {{A\lambda}\frac{\partial p}{\partial x}} \right|_{x = x_{2}} = {q_{2}(t)}} & (290) \\ {\left. P \right|_{t = 0} = p_{i}} & (291) \end{matrix}$

Eq.292 can be obtained by Substituting Eqs.287-288 into Eq.285 and simplifying

$\begin{matrix} {{{\lambda \frac{\partial^{2}p}{\partial x^{2}}} + {\frac{\partial\lambda}{\partial x}\frac{\partial p}{\partial x}}} = {{\varphi_{i}\left( {C_{f} + C_{L}} \right)}\frac{\partial p}{\partial t}}} & (293) \end{matrix}$

Note: When the piecewise generalized mobility function is discontinuous at certain point x₀,

$\frac{\partial\lambda}{\partial x}$

takes the average value of the left and right limits at x₀. The above equations are discretized as follows

$\begin{matrix} {\mspace{79mu} {{{{{A\lambda}_{1}^{({k + 1})}\frac{p_{2}^{({k + 1})} - p_{1}^{({k + 1})}}{x_{2} - x_{1}}} = q_{0}^{({k + 1})}};{k = 1}},2,\ldots,{K - 1}}} & (294) \\ {\mspace{79mu} {{{{{A\lambda}_{M}^{({k + 1})}\frac{p_{M}^{({k + 1})} - p_{M - 1}^{({k + 1})}}{x_{M} - x_{M - 1}}} = q_{2}^{({k + 1})}};{k = 1}},2,\ldots,{K - 1}}} & (295) \\ {\mspace{79mu} {{{P_{m}^{(1)} = p_{i}};{m = 1}},2,\ldots,M}} & (296) \\ {{{{{\lambda_{m + 1}^{({k + 1})}\left\lbrack {\frac{2p_{m}^{({k + 1})}}{\left( {x_{m} - x_{m + 1}} \right)\left( {x_{m} - x_{m + 2}} \right)} + \frac{2p_{m + 1}^{({k + 1})}}{\left( {x_{m + 1} - x_{m}} \right)\left( {x_{m + 1} - x_{m + 2}} \right)} + \frac{2p_{m + 2}^{({k + 1})}}{\left( {x_{m + 2} - x_{m}} \right)\left( {x_{m + 2} - x_{m + 1}} \right)}} \right\rbrack} + {{\xi \left\lbrack \lambda_{m + 1}^{({k + 1})} \right\rbrack}{\xi \left\lbrack p_{m + 1}^{({k + 1})} \right\rbrack}}} = {{\varphi_{i}\left( {C_{f} + C_{L}} \right)}\frac{p_{m + 1}^{({k + 1})} - p_{m + 1}^{(k)}}{t_{k + 1} - t_{k}}}};{m = 1}},2,\ldots,{{M - 2};{k = 1}},2,\ldots,{K - 1}} & (297) \end{matrix}$

Where

$\begin{matrix} {{\xi \left\lbrack f_{m + 1}^{({k + 1})} \right\rbrack} = {\frac{\left( {x_{m + 1} - x_{m + 2}} \right)f_{m}^{({k + 1})}}{\left( {x_{m} - x_{m + 1}} \right)\left( {x_{m} - x_{m + 2}} \right)} + \frac{\left( {x_{m} - {2x_{m + 1}} + x_{m + 2}} \right)f_{m + 1}^{({k + 1})}}{\left( {x_{m} - x_{m + 1}} \right)\left( {x_{m + 1} - x_{m + 2}} \right)} + \frac{\left( {x_{m + 1} - x_{m}} \right)f_{m + 2}^{({k + 1})}}{\left( {x_{m + 2} - x_{m}} \right)\left( {x_{m + 2} - x_{m + 1}} \right)}}} & (298) \end{matrix}$

Eq. 286 is discretized as follows

$\begin{matrix} {\lambda_{m + 1}^{({k + 1})} = \left\{ {{\begin{matrix} {\left\lbrack \left. {\frac{\mu}{K} + {\beta\rho}_{i}} \middle| v_{m + 1}^{({k + 1})} \right| \right\rbrack^{- 1},} & {0 \leq x_{m + 1} < X_{1}} \\ {{\alpha \frac{K}{\mu}},} & {X_{1} \leq x_{m + 1} \leq X_{2}} \end{matrix};{m = 0}},1,2,\ldots,{{M - 1};{k = 1}},2,\ldots,{\kappa - 1}} \right.} & (299) \end{matrix}$

Since the flow velocity v_(m+1) ^((k+1)) at k+1 step in Eq.298 is unknown, the exact value of λ_(m+1) ^((k+1)) cannot be obtained, which needs further approximate evaluation. For simplicity, the flow rate v_(m+1) ^((k)) at k step is used to approximate the flow rate v_(m+1) ^((k+1)) at k+1 step, i.e.,

v _(m+1) ^((k+1)) ≈v _(m+1) ^((k))=−λ_(m=1) ^((k))ξ[p _(m+1) ^((k+1))];m=0,2, . . . ,M−1;k=1,2, . . . ,κ−1  (300)

Furthermore

$\begin{matrix} {\lambda_{m + 1}^{({k + 1})} \approx \left\{ {{\begin{matrix} {\left\lbrack \left. {\frac{\mu}{K} + {\beta\rho}_{i}} \middle| {\lambda_{m + 1}^{(k)}{\xi \left\lbrack p_{m + 1}^{({k + 1})} \right\rbrack}} \right| \right\rbrack^{- 1},} & {0 \leq x_{m + 1} < X_{1}} \\ {{\alpha \frac{K}{\mu}},} & {X_{1} \leq x_{m + 1} \leq X_{2}} \end{matrix};{m = 0}},1,2,\ldots,{{M - 1};{k = 1}},2,\ldots,{\kappa - 1}} \right.} & (301) \end{matrix}$

Eq.300 is substituted into Eqs.293-296 to obtain p_(m) ^((k+1))=1, 2, . . . , M is the M-order linear equations of the unknown variables. The pressure distribution at k+1 is obtained by solving the above equations. The relationship between time and pressure can be plotted as shown in FIG. 47-49.

The specific meanings of the identifiers in embodiment 13 ar shown as follows:

A—open flowing area of tube-shaped reservoir, m²; C_(f)—compressibility of rock, 1/Pa; C_(L)—compressibility of fluid, 1/Pa; L—length of tube-shaped reservoir, m; P—pressure of tube-shaped reservoir, Pa; p_(i)—initial pressure of tube-shaped reservoir, Pa; q₀—flow rate at x=0, m³/s; q₂—flow rate at x=X₂, m³/s; t—time, s; x—x-axis distance, m; λ—generalized mobility of tube-shaped reservoir, m²/Pa·s; K—permeability, m²; μ—viscosity of the fluid, Pa·s; α—equation coefficient; β—non-Darcy flow coefficient, 1/m; v—fluid flow velocity, m/s; ϕ, ϕ_(i)—porosity and initial porosity in tube-shaped reservoir respectively, %; ρ, ρ_(i)—fluid density and initial density in tube-shaped reservoir respectively, kg/m³; m, k—distance and time index number respectively; M, κ—maximum distance and time index number respectively; ∂—partial differential operator.

The shut-in pressure build-up type curves in embodiment 8-12 are calculated by the formula (301) and plotted by performing Stehfest numerical inversion

p _(sD)(u)= p _(wD)(u)+ p _(wD)(u _(t) _(pD) )− p _(wD)(u _(t) _(pD) _(+t) _(D) )  (302)

where t_(pD) is the dimensionless production time before shut-in, explanation of p _(wD) refers embodiments 8 to 12.

The wellbore storage effect and skin effect are considered in the bottom hole pressure expression in embodiment 8-12 by Duhamel principle as

$\begin{matrix} {{\overset{\_}{P}}_{{wD},C_{D},S} = \frac{{{\overset{\_}{P}}_{wD}u} + S}{u + {u^{2}{C_{D}\left( {{{\overset{\_}{P}}_{wD}u} + S} \right)}}}} & (303) \end{matrix}$

where explanation of p _(wD) refers embodiments 8 to 12.

By applying this method, typical pressure draw-down type curves with consideration of skin effect and wellbore storage effects from embodiment 8 to 12 can be plotted as FIG. 19, FIG. 23, FIG. 26. FIG. 30, FIG. 34, FIG. 37, and FIG. 41. Typical pressure build-up type curves can also be plotted in the same way by using Eq.301.

Embodiment 14

This embodiment provides a multi-component condensate gas flow simulation analysis method for complex reservoirs. The model assumptions are as follows:

(1) Oil/gas/water three phases fluids are in the reservoir. The fluid flow is an isothermal process, (2) The phase equilibrium of hydrocarbon components in oil and gas phase is completed in a flash, (3) Water is an independent component and there is no mass exchange between hydrocarbons and water. (4) Rocks are slightly compressible. (5) Heterogeneity and anisotropy of the reservoirs are considered.

The multi-component condensate gas flow simulation analysis for complex reservoirs are created based on the assumptions above:

Water phase governing equation:

$\begin{matrix} {{\left\lbrack {\nabla{\cdot \left( {\rho_{w}\lambda_{w}{\nabla p_{w}}} \right)}} \right\rbrack = {{\frac{\partial}{\partial t}\left\lbrack {\varphi \left( {\rho_{w}S_{w}} \right)} \right\rbrack} + q_{w}}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (304) \end{matrix}$

Hydrocarbon components governing equation in oil and gas phase

$\begin{matrix} {{\left\lbrack {\nabla{\cdot {\sum\limits_{{k = o},g}\left( {\rho_{k}C_{ik}\lambda_{k}{\nabla p_{k}}} \right)}}} \right\rbrack = {{\frac{\partial}{\partial t}\left\lbrack {\varphi {\sum\limits_{{k = o},g}\left( {\rho_{k}S_{k}C_{k}} \right)}} \right\rbrack} + {\sum\limits_{{k = o},g}q_{ik}}}},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}},{i = 1},2,\ldots,n_{c}} & (305) \end{matrix}$

Auxiliary equations with saturation and capillary pressure:

Saturation equation

$\begin{matrix} {{{\sum\limits_{{k = o},g,w}S_{k}} = 1},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (306) \end{matrix}$

Capillary pressure equation at α-β phase interface

p _(cαβ)(S _(w))=p _(α) p _(β),(x,t)∈Ω×(0,t _(max)],α=o,g,w;β=o,g,w  (307)

Phase equilibrium equation:

The equilibrium constant of hydrocarbon component i in oil and gas phase:

K _(iog) =C _(io) /C _(ig) ,i=1, . . . ,n _(c)  (308)

The total mole percent of hydrocarbon component i in oil and gas phase:

$\begin{matrix} {{Z_{i} = {\sum\limits_{{k = o},g}{C_{ik}n_{k}^{\%}}}},{i = 1},\ldots,n_{c}} & (309) \end{matrix}$

Mole percentage normalization condition of hydrocarbon components in each phase:

$\begin{matrix} {{{\sum\limits_{i = 1}^{n_{c}}\; C_{ik}} = 1},{k = o},g} & (31) \end{matrix}$

Normalizing conditions for ratio of moles of each phase to the whole system:

$\begin{matrix} {{{\sum\limits_{i = 1}^{n_{c}}\; n_{k}^{\%}} = 1},{k = o},g} & (311) \end{matrix}$

Boundary condition equation:

Boundary condition equation of each phase

$\begin{matrix} {{\left( {{c_{k,1}p_{k}} + {c_{k,2}\lambda_{k}\frac{\partial p_{k}}{\partial n^{\partial\Omega}}}} \right) = {g_{k}\left( {ϰ,t} \right)}},{\left( {ϰ,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}},{k = 0},g,w} & (312) \end{matrix}$

Initial saturation equation:

Initial saturation equation of each phase

S _(k)(x,0)=l _(k)(x),x∈Ω,k=o,g,w  (313)

Initial pressure equation:

Initial pressure equation of each phase

p _(k)(x,0)=ƒ_(k)(x),x∈Ω,k=o,g,w  (314)

Variable symbols description in multi-component multi-phase flow simulation analysis equations: ϕ is porosity, which is the function of average pressure p, %; n_(c) is the total component number, dimensionless; λ_(k) is the generalized mobility of k-phase, m²/(Pa·s); ρ_(k) is density of k-phase, kg/m³; S_(k) is the k-phase saturation, t is time, s; t_(max) is the total time, s; p_(k) is the k-phase pressure, Pa; l_(k) is the k-phase initial saturation distribution function; q_(ik) is the source/sink term of hydrocarbon component i in k-phase, kg/(m³·s); ƒ_(k) is the k-phase initial pressure distribution function, Pa; K_(iog) is the hydrocarbon equilibrium constant of component i in α and β phase, dimensionless; C_(ik) is the mole percent of hydrocarbon component i in k-phase, dimensionless; Z_(i) is the total mole percent of component i, dimensionless;

is the ratio of k-phase to the whole system, dimensionless; g_(k) is the boundary functions of k-phase on reservoir boundary, dimensionless; p_(cαβ) is the capillary pressure at α-β phase interface, Pa; Ω is reservoir space; ∂Ω is reservoir boundary including internal boundary and outer boundary; c_(k,1) is the pressure term coefficients of k-phase on reservoir boundary, 1/Pa; c_(k,2) is the k-phase coefficients of directional derivative term along the normal direction outside the boundary on reservoir boundary condition, s/m; n^(∂Ω) is outer normal direction on reservoir boundary, m; ∇ is the Hamilton operator; ∂ is the partial derivative sign.

Embodiment 15

This embodiment provides a multi-component carbon dioxide driven flow simulation analysis method for complex reservoirs. The model assumptions are as follows:

(1) Oil/gas/water three phases fluids are in the reservoir. The fluid flow is a isothermal process, (2) The phase equilibrium of hydrocarbon components in oil and gas phase is completed in a flash, (3) Rocks are slightly compressible. (4) Heterogeneity and anisotropy of the reservoirs are considered. (5) Carbon dioxide diffusion is considered.

The multi-component carbon dioxide drive flow simulation analysis for complex reservoirs are created based on the assumptions above:

$\begin{matrix} {{{\left\lbrack {\nabla{\cdot {\sum\limits_{{k = o},g,w}\; \left( {\rho_{k}C_{ik}\lambda_{k}{\nabla p_{k}}} \right)}}} \right\rbrack + \left\lbrack {\nabla{\cdot {\sum\limits_{{k = o},g,w}\; \left( {\varphi \; \rho_{k}S_{k}D_{ik}{\nabla C_{ik}}} \right)}}} \right\rbrack} = {{\frac{\partial}{\partial t}\left\lbrack {\varphi {\sum\limits_{{k = o},g,w}\; \left( {\rho_{k}S_{k}C_{ik}} \right)}} \right\rbrack} + {\sum\limits_{{k = o},g,w}\; q_{ik}}}},{\left( {ϰ,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}},{i = 1},2,\ldots \mspace{14mu},n_{c}} & (315) \end{matrix}$

Auxiliary equations with saturation and capillary pressure:

Saturation equation

$\begin{matrix} {{{\sum\limits_{{k = o},g,w}S_{k}} = 1},{\left( {ϰ,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (316) \end{matrix}$

Capillary pressure equation at α-β phase interface

p _(cαβ)(S _(w))=p _(a)-p _(β),(x,t)∈Ω×(0,t _(max)],α=o,g,w;β=o,g,w  (317)

Phase equilibrium equation:

The equilibrium constant of component i in α and β phase:

K _(iαβ) =C _(iα) /C _(iβ) ,α=o,g,w;β=o,g,w;i=1, . . . ,n _(c)  (318)

The total mole percent of component i:

$\begin{matrix} {{Z_{i} = {\sum\limits_{{k = o},g,w}{C_{lk}n_{k}^{\%}}}},{i = 1},\ldots \mspace{14mu},n_{c}} & (319) \end{matrix}$

Mole percentage normalization condition of components in each phase:

$\begin{matrix} {{{\sum\limits_{i = 1}^{n_{c}}\; C_{ik}} = 1},{k = o},g,w} & (320) \end{matrix}$

Normalizing conditions for ratio of moles of each phase to the whole system:

$\begin{matrix} {{{\sum\limits_{i = 1}^{n_{c}}n_{k}^{\%}} = 1},{k = o},g,w} & (321) \end{matrix}$

Boundary condition equation:

Boundary condition equation of each phase

$\begin{matrix} {{\left( {{c_{k,1}p_{k}} + {c_{k,2}\lambda_{k}\frac{\partial p_{k}}{\partial n^{\partial\Omega}}}} \right) = {g_{k}\left( {ϰ,t} \right)}},{\left( {ϰ,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}},{k = o},g,w} & (322) \end{matrix}$

Initial saturation equation:

Initial saturation equation of each phase

S _(k)(x,0)=l _(k)(x),x∈Ω,k=o,g,w  (323)

Initial pressure equation:

Initial pressure equation of each phase

p _(k)(x,0)=ƒ_(k)(x),x∈Ω,k=o,g,w  (324)

Variable symbols description in multi-component multi-phase flow simulation analysis equations: ϕ is porosity, which is the function of average pressure p, %; n_(c) is the total component number, dimensionless; λ_(k) is the generalized mobility of k-phase, m²/(Pa·s); ρ_(k) is density of k-phase, kg/m³; V_(i) is adsorption amount of component i, dimensionless; S_(k) is the k-phase saturation; t is time, s; t_(max) is the total time, s; p_(k) is the k-phase pressure, Pa; l_(k) is the k-phase initial saturation distribution function; q_(ik) is the source/sink term of component i in k-phase, kg/(m³·s); ƒ_(k) is the k-phase initial pressure distribution function, Pa; K_(ioβ) is the equilibrium constant of component i in α and β phase, dimensionless; C_(ik) is the mole percent of component i in k-phase, dimensionless; D_(ik) is the diffusion coefficient of component i in k-phase, m²/s; Z_(i) is the total mole percent of component i, dimensionless;

is the ratio of k-phase to the whole system, dimensionless; g_(k) is the boundary functions of k-phase on reservoir boundary, dimensionless; p_(cαβ) is the capillary pressure at α-β phase interface, Pa; Ω is reservoir space; ∂Ω is reservoir boundary including internal boundary and outer boundary; c_(k,1) is the pressure term coefficients of k-phase on reservoir boundary, 1/Pa; c_(k,2) is the k-phase coefficients of directional derivative term along the normal direction outside the boundary on reservoir boundary condition, s/m; n^(∂Ω) is outer normal direction on reservoir boundary, m; ∇ is the Hamilton operator; ∂ is the partial derivative sign.

Embodiment 16

This embodiment provides a multi-component polymer driven flow simulation analysis method for complex reservoirs. The model assumptions are as follows:

(1) Oil/gas/water three phases fluids are in the reservoir. The fluid flow is a isothermal process, (2) The fluid flow phase equilibrium is completed in a flash, (3) Rocks are slightly compressible. (4) Heterogeneity and anisotropy of the reservoirs are considered. (5) Diffusion and adsorption of polymer are considered.

The multi-component polymer driven flow simulation analysis for complex reservoirs are created based on the assumptions above:

$\begin{matrix} {{{\left\lbrack {\nabla{\cdot {\sum\limits_{{k = o},g,w}\; \left( {\rho_{k}C_{ik}\lambda_{k}{\nabla p_{k}}} \right)}}} \right\rbrack + \left\lbrack {\nabla{\cdot {\sum\limits_{{k = o},g,w}\; \left( {\varphi \; \rho_{k}S_{k}D_{ik}{\nabla C_{ik}}} \right)}}} \right\rbrack} = {{\frac{\partial}{\partial t}\left\lbrack {\varphi {\sum\limits_{{k = o},g,w}\; \left( {\rho_{k}S_{k}C_{ik}} \right)}} \right\rbrack} + {\frac{\partial}{\partial t}\left\lbrack {\left( {1 - \varphi} \right)\rho_{r}V_{i}} \right\rbrack} + {\sum\limits_{{k = o},g,w}\; q_{ik}}}},\mspace{79mu} {\left( {ϰ,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}},{i = 1},2,\ldots \mspace{14mu},n_{c}} & (325) \end{matrix}$

Auxiliary equations with saturation and capillary pressure:

Saturation equation

$\begin{matrix} {{{\sum\limits_{{k = o},g,w}S_{k}} = 1},{\left( {ϰ,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (326) \end{matrix}$

Capillary pressure equation at α-β phase interface

p _(cαβ)(S _(w))=ρ_(α)-ρ_(β),(x,t)∈Ω×(0,t _(max)],α=o,g,w;β=o,g,w  (327)

Phase equilibrium equation:

The equilibrium constant of component i in α and β phase:

K _(iαβ) =C _(iα) /C _(iβ) ,α=o,g,w,β=o,g,w,i=, . . . ,n _(c)  (328)

The total mole percent of component i:

$\begin{matrix} {{Z_{i} = {\sum\limits_{{k = o},g,w}^{\;}\; {c_{lk}n_{k}^{\%}}}},{i = 1},\ldots \mspace{14mu},n_{c}} & (329) \end{matrix}$

Mole percentage normalization condition of components in each phase:

$\begin{matrix} {{{\sum\limits_{i = 1}^{n_{c}}\; C_{ik}} = 1},{k = o},g,w} & (330) \end{matrix}$

Normalizing conditions for ratio of moles of each phase to the whole system:

$\begin{matrix} {{{\sum\limits_{i = 1}^{n_{c}}\; n_{k}^{\%}} = 1},{k = o},g,w} & (331) \end{matrix}$

Boundary condition equation

Boundary condition equation of each phase

$\begin{matrix} {{\left( {{c_{k,1}p_{k}} + {c_{k,2}\lambda_{k}\frac{\partial p_{k}}{\partial n^{\partial\Omega}}}} \right) = {g_{k}\left( {ϰ,t} \right)}},{\left( {ϰ,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}},{k = o},g,w} & (332) \end{matrix}$

-   -   Initial saturation equations:     -   Initial saturation equation of each phase

S _(k)(x,0)=l _(k)(x),x∈Ω,k=o,g,w  (333)

-   -   Initial pressure equation:     -   Initial pressure equation of each phase

p _(k)(x,0)=ƒ_(k)(x),x∈Ω,k=o,g,w  (334)

Variable symbols description in multi-component multi-phase flow simulation analysis equations: ϕ is porosity, which is the function of average pressure p, %; n_(c) is the total component number, dimensionless; λ_(k) is the generalized mobility of k-phase, m²/(Pa·s); ρ_(k), ρ_(r) are densities of k-phase and rock, kg/m³; V_(i) is adsorption amount of component i, dimensionless; S_(k) is the k-phase saturation; t is time, s; t_(max) is the total time, s; p_(k) is the k-phase pressure, Pa; l_(k) is the k-phase initial saturation distribution function; q_(ik) is the source/sink term of component i in k-phase, kg/(m³·s); ƒ_(k) is the k-phase initial pressure distribution function, Pa; K_(iαβ) is the equilibrium constant of component i in α and β phase, dimensionless; C_(ik) is the mole percent of component i in k-phase, dimensionless; D_(ik) is the diffusion coefficient of component i in k-phase, m²/s; Z_(i) is the total mole percent of component i, dimensionless;

is the ratio of k-phase to the whole system, dimensionless; g_(k) is the boundary functions of k-phase on reservoir boundary, dimensionless; p_(cαβ) is the capillary pressure at α-β phase interface, Pa; Ω is reservoir space; ∂Ω is reservoir boundary including internal boundary and outer boundary; c_(k,1) is the pressure term coefficients of k-phase on reservoir boundary, 1/Pa; c_(k,2) is the k-phase coefficients of directional derivative term along the normal direction outside the boundary on reservoir boundary condition, s/m; n^(∂Ω) is outer normal direction on reservoir boundary, m; ∇ is the Hamilton operator; ∂ is the partial derivative sign.

Embodiment 17

This embodiment provides a multi-component three-phase flow simulation analysis method considering non-isothermal process in complex reservoirs.

(1) Oil/gas/water three phases fluids are in the reservoir. The fluid flow is a non-isothermal process, (2) The fluid flow phase equilibrium is is completed in a flash, (3) Rocks are slightly compressible, (4) Heterogeneity and anisotropy of the reservoirs are considered.

The multi-component three-phase flow simulation analysis for complex reservoirs considering temperature change are created based on the assumptions above:

Component governing equations:

$\begin{matrix} {{\left\lbrack {\nabla{\cdot {\sum\limits_{{k = o},g,w}\; \left( {\rho_{k}C_{ik}\lambda_{k}{\nabla p_{k}}} \right)}}} \right\rbrack = {\frac{\partial}{\partial t}\left\lbrack {\varphi {\sum\limits_{{k = o},g,w}\; \left( {\rho_{k}S_{k}C_{ik}} \right)}} \right\rbrack}},{\left( {ϰ,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}},{i = 1},2,\ldots \mspace{14mu},n_{c}} & (335) \end{matrix}$

Energy conservation equation:

$\begin{matrix} {{{\left\lbrack {\nabla{\cdot {\sum\limits_{{k = 0},w,g}\left( {\pi_{k}\rho_{k}\lambda_{k}{\nabla p_{k}}} \right)}}} \right\rbrack + \left\lbrack {{\nabla{\cdot \kappa}}{\nabla T}} \right\rbrack} = {{\frac{\partial}{\partial t}\left\lbrack {\varphi {\sum\limits_{{k = o},w,g}\left( {\rho_{k}S_{k}U_{k}} \right)}} \right\rbrack} + {\frac{\partial}{\partial t}\left\lbrack {\left( {1 - \varphi} \right)\rho_{r}U_{r}} \right\rbrack}}},\mspace{79mu} {\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}} & (336) \end{matrix}$

Auxiliary equations with saturation and capillary pressure:

Saturation equation

$\begin{matrix} {{{\sum\limits_{{k = o},w,g}S_{k}} = 1},{\left( {x,t} \right) \in {\Omega \times \left( {0,T} \right\rbrack}}} & (337) \end{matrix}$

Capillary pressure equation at α-β phase interface

p _(cαβ)(S _(w))=p _(α) −p _(β),(x,t)∈Ω×(0,T],α=o,w,g _(p) ;β=o,w,g  (338)

Phase equilibrium equation:

The equilibrium constant of component i in α and β phase:

K _(iαβ) =C _(iα) /C _(iβ) ,α=o,w,g;β=o,w,g;i=, . . . ,n _(c)  (339)

Mole percentage normalization condition of components in each phase:

$\begin{matrix} {{{\sum\limits_{i = 1}^{n_{c}}C_{ik}} = 1},{k = o},w,g} & (340) \end{matrix}$

The total mole percent of component i:

$\begin{matrix} {{Z_{i} = {\sum\limits_{{k = o},w,g}{C_{ik}}}},{i = 1},\ldots \mspace{14mu},n_{c}} & (341) \end{matrix}$

Normalizing conditions for ratio of moles of each phase to the whole system:

$\begin{matrix} {{{\sum\limits_{i = 1}^{n_{c}}} = 1},{k = o},w,g} & (342) \end{matrix}$

Boundary condition equations:

Boundary condition equation of pressure for each phase

$\begin{matrix} {{\left( {{c_{k,1}p_{k}} + {c_{k,2}\lambda_{k}\frac{\partial p_{k}}{\partial n^{\partial\Omega}}}} \right) = {g_{k}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}},{k = o},w,g} & (343) \end{matrix}$

Boundary condition equation of temperature

$\begin{matrix} {{\left( {{d_{1}T} + {d_{2}\kappa \frac{\partial T}{\partial n^{\partial\Omega}}}} \right) = {w\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}} & (344) \end{matrix}$

Initial saturation equation:

Initial saturation equation of each phase

S _(k)(x,0)=l _(k)(x),x∈Ω,k=o,w,g  (345)

Initial pressure equation:

Initial pressure equation of each phase

p _(k)(x,0)=ƒ_(k)(x),x∈Ω,k=o,w,g  (346)

Initial temperature equation:

T(x,0)=τ(x),x∈Ω  (347)

Variable symbols description in thermal multi-component three-phase flow simulation analysis equations: ϕ is porosity, which is the function of average pressure p, %; n_(c) is the total component number, dimensionless; λ_(k) is the generalized mobility of k-phase, m²/(Pa·s); ρ_(k), ρ_(r) are densities of k-phase and rock, kg/m³; π_(k) is enthalpy of k phase, J/kg; U_(k), U_(r) are internal energy of k-phase and rock, J/kg; S_(k) is the k-phase saturation; t is time, s; t_(max) is the maximum of time, s; p_(k) is the k-phase pressure, Pa; l_(k) is the k-phase initial saturation distribution function; ƒ_(k) is the k-phase initial pressure distribution function, Pa; K_(iαβ) is the equilibrium constant of component i in α and β phase, dimensionless; C_(ik) is the mole percent of component i in k-phase, dimensionless; Z_(i) is the total mole percent of component i, dimensionless;

is the ratio of k-phase to the whole system, dimensionless; g_(k) is the boundary functions of k-phase on reservoir boundary, dimensionless; w is boundary function of temperature on reservoir boundary, dimensionless; τ is the initial temperature distribution function of reservoirs, K; p_(cαβ) is the capillary pressure at α-β phase interface, Pa; Ω is reservoir space; ∂Ω is reservoir boundary including internal boundary and outer boundary; c_(k,1) is the pressure term coefficients of k-phase on reservoir boundary, 1/Pa; c_(k,2) is the k-phase coefficients of derivative terms along the outer normal line on reservoir boundary condition, s/m; d₁ is the temperature term coefficient on reservoir boundary, 1/K; d₂ is temperature coefficients of directional derivative term along the normal direction outside the boundary on reservoir boundary condition, s·m²/J; κ is the thermal conductivity, J/(m·s·K); n^(∂Ω) is outer normal direction on reservoir boundary, m; ∇ is the Hamilton operator; ∂ is the partial derivative sign.

Embodiment 18

This embodiment provides a transient temperature analysis method for single oil phase flow.

(1) oil single phase fluid in the reservoir, the fluid flow is a non-isothermal process, (2) both fluids and rocks are slightly compressible, (3) the same thickness in the reservoir, (4) well is a vertical well, fully penetrating the entire formation thickness, (5) there exists no heat transfer to over- and under-burden strata from the reservoir.

The transient temperature analysis model for oil single-phase is created based on the assumptions above:

Governing equations:

$\begin{matrix} {{\frac{1}{r}\frac{\partial\;}{\partial r}\left( {r\frac{\partial p}{\partial r}} \right)} = {\frac{\varphi \; C_{i}}{\lambda}\frac{\partial p}{\partial t}}} & (348) \end{matrix}$

Energy conservation equation:

$\begin{matrix} {{\frac{\partial T}{\partial t} - {C_{pR}\lambda \frac{\partial p}{\partial r}\frac{\partial T}{\partial r}} - {\frac{\alpha_{t}}{r}\frac{\partial}{\partial r}\left( {r\frac{\partial T}{\partial r}} \right)}} = {{\phi*\frac{\partial p}{\partial t}} - {ɛ_{JT}C_{pR}\lambda \frac{\partial p}{\partial r}\frac{\partial p}{\partial r}}}} & (349) \end{matrix}$

Boundary condition equation of pressure

$\begin{matrix} \left\{ \begin{matrix} {\left. {2\pi \; {hr}\; \lambda \frac{\partial p}{\partial r}} \right|_{r = r_{w}} = {{qB} + {C\frac{\partial p_{w}}{\partial t}}}} \\ {p_{w} = \left. \left( {p - {{Sr}\frac{\partial p}{\partial r}}} \right) \right|_{r = r_{w}}} \\ {{\lim\limits_{r\infty}\; p} = p_{i}} \end{matrix} \right. & (350) \end{matrix}$

Boundary condition equation of temperature

$\begin{matrix} \left\{ \begin{matrix} {\left. {r\frac{\partial T}{\partial r}} \right|_{r = r_{w}} = 0} \\ {{\lim\limits_{r\infty}\; T} = T_{i}} \end{matrix} \right. & (351) \end{matrix}$

Initial pressure equation:

P| _(t=0) =p _(i)  (352)

Initial temperature equation:

T| _(t=0) =T _(i)  (353)

Model solution:

Defining the dimensionless pressure distribution function

${p_{D} = \frac{2{\pi\lambda}\; {h\left( {p_{i} - p} \right)}}{qB}},$

dimensionless bottom-hole pressure function

${p_{wD} = \frac{2{\pi\lambda}\; {h\left( {p_{i} - p_{w}} \right)}}{qB}},$

dimension time

${t_{D} = \frac{\lambda \; t}{\varphi \; C_{t}r_{w}^{2}}},$

dimensionless radial distance

${r_{D} = \frac{r}{r_{w}}},$

dimensionless wellbore storage coefficient

${C_{D} = \frac{C}{2{{\pi\varphi}C}_{t}{hr}_{w}^{2}}},$

then convert Eqs.347, 349, 351 into dimensionless equations.

$\begin{matrix} {{\frac{1}{r_{D}}\frac{\partial}{\partial r_{D}}\left( {r_{D}\frac{\partial p_{D}}{\partial r_{D}}} \right)} = \frac{\partial p_{D}}{\partial t_{D}}} & (354) \\ \left\{ \begin{matrix} {{{r_{D}\frac{\partial p_{D}}{\partial r_{D}}}_{r_{D} = 1}} = {{- 1} + {C_{D}\frac{\partial p_{wD}}{\partial t_{D}}}}} \\ {p_{wD} = {\left( {p_{D} - {{Sr}_{D}\frac{\partial p_{D}}{\partial r_{D}}}} \right)_{r_{D} = 1}}} \\ {{\lim\limits_{r_{D}\rightarrow\infty}p_{D}} = 0} \end{matrix} \right. & (355) \\ {{p_{D}_{t_{D} = 0}} = 0} & (356) \end{matrix}$

The Laplace space pressure distribution function can be obtained by conducting Laplace transformation to Eqs.353, 354, 355 based on to as

$\begin{matrix} {{\overset{\_}{p}}_{D} = \frac{K_{0}\left( {\sqrt{u}r_{D}} \right)}{u\left( {{\sqrt{u}C_{D}{{SuK}_{1}\left( \sqrt{u} \right)}} + {C_{D}{{uK}_{0}\left( \sqrt{u} \right)}} + {\sqrt{u}{K_{1}\left( \sqrt{u} \right)}}} \right)}} & (357) \end{matrix}$

The pressure distribution function p_(D) in real space can be obtained through Laplace inverse transformation of Eq.356, then the pressure p_(D) is converted to dimensional form as

$\begin{matrix} {p = {p_{i} - {\frac{qB}{2{{\lambda}h}}p_{D}}}} & (358) \end{matrix}$

Substitute Eq.357 into Eq. 348 to obtain the differential equation of temperature about time and radial distance, which cannot be solved by analytical solutions so that it need to be solved through numerical methods to obtain numerical solutions that satisfy solution conditions of Eqs.350 and 352.

Variable symbols description in single oil phase flow transient temperature analysis equations: ϕ is porosity, %; λ is the generalized mobility, m²/(Pa·s); ρ is the density, kg/m³; t is time, s; t_(max) is the maximum of time, s; p is the pressure, Pa; T is the temperature, K; T_(i) is the initial temperature, K; q is he flow rate, m³/s; B is the volume factor, dimensionless; h is the reservoir thickness, m; p_(w) is the bottom-hole pressure, Pa; C_(t) is the total compressibility, 1/MPa; p_(i) is the initial pressure, Pa; ∇ is the Hamilton operator; ∂ is the partial derivative sign; C_(pR) is the ratio of volumetric heat capacity of a fluid to that of a saturated fluid rock, dimensionless; α_(t) is the thermal diffusion of saturated fluid rocks, m²/s; φ* is the effective heat expansion coefficient, K/Pa; ε_(JT) is the Joule-Thomson coefficient, K/Pa; C is the wellbore storage coefficient, m³/Pa; S is the skin factor, dimensionless; r_(w) is the wellbore radius, m; u is the Laplace variable corresponding to dimensionless time t_(D).

The embodiments given above are some typical examples of realizing this invention, but this invention is not limited to these examples. Any non-essential addition or substitution based on the technical features of the invention made by the technicians in the field all belong to the protection range of this invention. 

1. A flow simulation and transient well analysis method based on generalized tube flow and percolation coupling, characterized in comprising the following steps: S1: Based on defining the generalized mobility, fluid flow laws in different subset of study area are characterized by using the generalized mobility models with the same form; S2: On the basis of generalized mobility, the multi-component multi-phase flow governing equations are established by considering convection term, diffusion term, accumulation term, adsorption term, and source/sink term. Then a whole set of multi-component multi-phase flow simulation equations are formed through combining energy conservation equation, auxiliary equations with saturation and capillary pressure, initial saturation equation, initial pressure equation, initial temperature equation, phase equilibrium equation, and boundary condition equations; The pressure, temperature and saturation of multi-phase fluid as well as the mole percentage of each component in each phase at any point in the study areas are obtained by solving the above-mentioned multi-component multi-phase flow simulation equations; S3: The corresponding application software are formed by using the established multi-component multi-phase flow simulation and analysis equations.
 2. The flow simulation and transient well analysis method based on generalized tube flow and percolation coupling as claimed according to claim 1, characterized in that the details of step S1 is as follows: S11: For any type of fluid motion equation, if it can be written as v=−λ∇p, λ is called generalized mobility. where v denotes the fluid flow velocity, ∇p denotes the pressure gradient, and the generalized mobility λ is a function of space position and time; S12 The general mobility models with the same form are used to characterize the flow laws of fluid in the tube flow area of wellbores, pipes, fractures, vugs, holes, cavities, caves, fracture caves, karst caves and caverns, and the percolation area of porous media.
 3. The flow simulation and transient well analysis method based on generalized tube flow and percolation coupling as claimed according to claim 1, characterized in that the details of step S2 is as follows: S21: The generalized mobility of three-dimensional multi-phase flow ${\lambda_{k} = \begin{bmatrix} {\lambda_{k,{xx}}\left( {x,t} \right)} & {\lambda_{k,{xy}}\left( {x,t} \right)} & {\lambda_{k,{xz}}\left( {x,t} \right)} \\ {\lambda_{k,{yx}}\left( {x,t} \right)} & {\lambda_{k,{yy}}\left( {x,t} \right)} & {\lambda_{k,{yz}}\left( {x,t} \right)} \\ {\lambda_{k,{zx}}\left( {x,t} \right)} & {\lambda_{k,{zy}}\left( {x,t} \right)} & {\lambda_{k,{zz}}\left( {x,t} \right)} \end{bmatrix}},$ where k=1, 2, . . . , n_(p), n_(p) denotes the total phase number, x denotes space position, t denotes time, 9 components of generalized mobility λ_(k,xx), λ_(k,xy), λ_(k,xz), λ_(k,yx), λ_(k,yy), λ_(k,yz), λ_(k,zx), λ_(k,zy), λ_(k,zz) are all functions of space position x and time t; S22: Rewriting the three-dimensional multi-phase flow motion equation into a standard form v_(k)=−λ_(k)∇p_(k) by applying three-dimensional multi-phase flow generalized mobility, where k=1, 2, . . . , n_(p), n_(p) denotes the total phase number, $\nabla{= \left( {\frac{\partial}{\partial x},\frac{\partial}{\partial y},\frac{\partial}{\partial z}} \right)^{T}}$ is Hamilton operator, v_(k) is fluid velocity of k-phase, p_(k) is pressure of k-phase; S23: Multi-component multi-phase flow simulation equations The multi-component multi-phase flow equations considering convection term, diffusion term, accumulation term, adsorption term, and source/sink term are written as: Component governing equation: ${{\left\lbrack {\nabla{\cdot {\sum\limits_{k = 1}^{n_{p}}\; \left( {\rho_{k}C_{ik}\lambda_{k}{\nabla p_{k}}} \right)}}} \right\rbrack + \left\lbrack {\nabla{\cdot {\sum\limits_{k = 1}^{n_{p}}\; \left( {{\varphi\rho}_{k}S_{k}D_{ik}{\nabla C_{ik}}} \right)}}} \right\rbrack} = {{\frac{\partial}{\partial t}\left\lbrack {\varphi {\sum\limits_{k = 1}^{n_{p}}\; \left( {\rho_{k}S_{k}C_{ik}} \right)}} \right\rbrack} + {\frac{\partial}{\partial t}\left\lbrack {\left( {1 - \varphi} \right)\rho_{r}V_{i}} \right\rbrack} + {\underset{k = 1}{\overset{n_{p}}{\sum}}\; C_{ik}q_{k}}}},\mspace{79mu} {\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}},{i = 1},2,...\mspace{14mu},n_{c}$ Energy conservation equation: ${{\left\lbrack {\nabla{\cdot {\sum\limits_{k = 1}^{n_{p}}\left( {_{k}\rho_{k}\lambda_{k}{\nabla p_{k}}} \right)}}} \right\rbrack + \left\lbrack {{\nabla{\cdot \kappa}}{\nabla T}} \right\rbrack} = {{\frac{\partial}{\partial t}\left\lbrack {\varphi {\sum\limits_{k = 1}^{n_{p}}\left( {\rho_{k}S_{k}U_{k}} \right)}} \right\rbrack} + {\frac{\partial}{\partial t}\left\lbrack {\left( {1 - \varphi} \right)\rho_{t}U_{r}} \right\rbrack} + {\underset{k = 1}{\overset{n_{p}}{\sum}}\; _{k}q_{k}}}},\mspace{79mu} {\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}$ Auxiliary equations with saturation and capillary pressure: Saturation equation ${{\sum\limits_{k = 1}^{n_{p}}\; S_{k}} = 1},{\left( {x,t} \right) \in {\Omega \times \left( {0,t_{\max}} \right\rbrack}}$ Capillary pressure equation at α-β phase interface p _(cαβ)(S _(w))=p _(α)-p _(β),(x,t)∈Ω×(0,T],α=1, . . . ,n _(p);β=1, . . . ,n _(p) Phase equilibrium equation: The phase equilibrium constant of component i in α and β phase: K _(iαβ) =C _(iα) /C _(iβ),α=1, . . . ,n _(p);β=1, . . . ,n _(p) ;i=1, . . . ,n _(c) Mole percentage normalization condition of components in each phase: ${{\sum\limits_{i = 1}^{n_{c}}C_{ik}} = 1},{k = 1},...\mspace{14mu},\; n_{p}$ The total mole percent of component i: ${Z_{i} = {\overset{n_{p}}{\sum\limits_{k = 1}}{C_{ik}}}},{i = 1},...\mspace{14mu},n_{c}$ Normalization conditions for ratio of moles of each phase to the whole system: ${{\sum\limits_{i = 1}^{n_{c}}} = 1},{k = 1},...\mspace{14mu},n_{p}$ Boundary condition equations: Boundary condition equation of pressure for each phase ${\left( {{c_{k,1}p_{k}} + {c_{k,2}\lambda_{k}\frac{\partial p_{k}}{\partial n^{\partial\Omega}}}} \right) = {g_{k}\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}},\mspace{79mu} {k = 1},...\mspace{14mu},n_{p}$ Boundary condition equation of temperature ${\left( {{d_{1}T} + {d_{2}\kappa \frac{\partial T}{\partial n^{\partial\Omega}}}} \right) = {w\left( {x,t} \right)}},{\left( {x,t} \right) \in {{\partial\Omega} \times \left( {0,t_{\max}} \right\rbrack}}$ Initial saturation equation: Initial saturation equation of each phase S _(k)(x,0)=l _(k)(x),x∈Ω,k=1, . . . ,n _(p) Initial pressure equation: Initial pressure equation of each phase p _(k)(x,0)=ƒ_(k)(x),x∈Ω,k=1, . . . ,n _(p) Initial temperature equation: T(x,0)=τ(x),x∈Ω Variable symbols description in multi-component multi-phase flow simulation analysis equations: ϕ is porosity, which is the function of average pressure p, %; n_(c) is the total component number, dimensionless; n_(p) is the total phase number, dimensionless; λ_(k) is the generalized mobility of k-phase, m²/(Pa·s); ρk, ρ_(r) are densities of k-phase and rock, kg/m³; π_(k) is enthalpy of k phase, J/kg; U_(k), U_(r) are internal energy of k-phase and rock, J/kg; V_(i) is adsorption amount of component i, dimensionless; S_(k) is the k-phase saturation; t is time, s; t_(max) is the maximum of time, s; p_(k) is the k-phase pressure, Pa; l_(k) is the k-phase initial saturation distribution function; q_(k) is the source/sink term of k-phase, kg/(m³·s); ƒ_(k) is the k-phase initial pressure distribution function, Pa; K_(iαβ) is the phase equilibrium constant of component i in α and δ phase, dimensionless; C_(ik) is the mole percent of component i in k-phase, dimensionless; D_(ik) is the diffusion coefficient of component i in k-phase, m²/s; Z_(i) is the total mole percent of component i, dimensionless;

is the ratio of k-phase to the whole system, dimensionless; g_(k) is the boundary functions of k-phase on reservoir boundary, dimensionless; w is boundary function of temperature on reservoir boundary, dimensionless; τ is the initial temperature distribution function of reservoirs, K; pcαβ is the capillary pressure at α-β phase interface, Pa; Ω is reservoir space; ∂Ω is reservoir boundary including internal boundary and outer boundary; c_(k,1) is the pressure term coefficients of k-phase on reservoir boundary, 1/Pa; c_(k,2) is the k-phase coefficients of derivative terms along the outer normal direction on reservoir boundary condition, s/m; d₁ is the temperature term coefficient on reservoir boundary, 1/K; d₂ is temperature coefficients of derivative terms along the outer normal direction on reservoir boundary condition, s·m²/J; κ is coefficient of the thermal conductivity, J/(m·s·K); n^(∂Ω) is the outer normal direction on reservoir boundary, m; ∇ is the Hamilton operator; ∂ is the partial derivative sign; S24: The analytical solution algorithms of above multi-component multi-phase flow simulation equations include direct solving method, Laplace transformation, Fourier transformation, and orthogonal transformation method Their numerical methods include finite difference method, finite volume method, boundary element method, and finite element method; After solving, the pressure, temperature, and saturation in multi-phase flow are obtained, including the pressure, temperature, saturation, and mole percent of each component in each phase at any time and at any position in the study area.
 4. The flow simulation and transient well analysis method based on generalized tube flow and percolation coupling as claimed according to claim 1, characterized in that the details of step S3 is as follows: S31: The application software described above includes 5 main parts: data pre-processing system, numerical simulation system, analytical analysis system, and analysis results output system, data input and output management system. Its analysis process includes reservoir definition, setting of initial and boundary conditions, wellbore and fracture setting, numerical simulator selection or fluid type and composition setting, generalized mobility model definition, grid design of numerical simulation, wellbore storage model setting, flow period and regime definition, coordinate transformation, setting of models and their type curve analysis, parameter adjustment and history matching, dynamic prediction; S32: The application software described above can be used for single and multi-well flow simulation of complex multi-component multi-phase flow reservoirs, multi-well interference analysis, deliverability analysis, transient pressure analysis, transient rate analysis, transient temperature analysis, well test design, and permanent downhole monitoring data analysis. The complex multi-component multi-phase flow reservoirs mentioned above include all types of fluid reservoirs, oil and gas reservoirs with fluid injection, underground gas storage, ground water reservoirs, and geothermal reservoirs. 